Skip to content

Commit

Permalink
fix long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeceglie committed Sep 20, 2024
1 parent 397e513 commit 7e66423
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions rdtools/soiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -2044,11 +2044,15 @@ def _Kalman_filter_for_SR(self, zs_series, process_noise=1e-4, zs_std=.05,
# Initialize various parameters
with pd.option_context('future.no_silent_downcasting', True):
if ffill:
rolling_median_13 = zs_series.ffill().rolling(13, center=True).median().ffill().bfill()
rolling_median_7 = zs_series.ffill().rolling(7, center=True).median().ffill().bfill()
rolling_median_13 = \
zs_series.ffill().rolling(13, center=True).median().ffill().bfill()
rolling_median_7 = \
s_series.ffill().rolling(7, center=True).median().ffill().bfill()
else:
rolling_median_13 = zs_series.bfill().rolling(13, center=True).median().ffill().bfill()
rolling_median_7 = zs_series.bfill().rolling(7, center=True).median().ffill().bfill()
rolling_median_13 = \
zs_series.bfill().rolling(13, center=True).median().ffill().bfill()
rolling_median_7 = \
zs_series.bfill().rolling(7, center=True).median().ffill().bfill()
# A rough estimate of the measurement noise
measurement_noise = (rolling_median_13 - zs_series).var()
# An initial guess of the slope
Expand Down

0 comments on commit 7e66423

Please sign in to comment.