Skip to content

Commit

Permalink
fixing minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoyer committed Aug 27, 2024
1 parent 3860ada commit f64077a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions rdtools/soiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,8 @@ def _calc_daily_df(self, day_scale=13, clean_threshold="infer", recenter=True,
# step, slope change detection
# 1/6/24 Note several errors in soiling fit due to ffill for rolling
# median change to day_scale/2 Matt
#df_ffill = df.copy()
#df_ffill = df.ffill(limit=int(round((day_scale / 2), 0)))
df_ffill = df.fillna(method='ffill', limit=day_scale).copy()
df_ffill = df.copy()
df_ffill = df.ffill(limit=int(round((day_scale / 2), 0)))
# Calculate rolling median
df["pi_roll_med"] = df_ffill.pi_norm.rolling(day_scale, center=True).median()

Expand Down Expand Up @@ -2953,4 +2952,4 @@ def segmented_soiling_period(
# Create Series from modelled profile
sr = pd.Series(z, index=pr.index)

return sr, cp_date
return sr, cp_date

0 comments on commit f64077a

Please sign in to comment.