Skip to content

Commit cd591c5

Browse files
linting
1 parent aa6a7ff commit cd591c5

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

rdtools/plotting.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -513,11 +513,16 @@ def _bootstrap(x, percentile, reps):
513513
try:
514514
roller = results_values.rolling(f'{rolling_days}d', min_periods=rolling_days//2,
515515
center=center)
516-
except ValueError: # this occurs with degradation_year_on_year(multi_yoy=True). resample to daily mean
517-
warnings.warn("Input `yoy_info['YoY_values']` appears to have multiple annual "
518-
"slopes per day, which is the case if degradation_year_on_year(multi_yoy=True). "
519-
"Proceeding to plot with a daily mean which will average out the time-series"
520-
" trend. Recommend re-running with degradation_year_on_year(multi_yoy=False).")
516+
except ValueError:
517+
# this occurs with degradation_year_on_year(multi_yoy=True). resample to daily mean
518+
warnings.warn(
519+
"Input `yoy_info['YoY_values']` appears to have multiple annual "
520+
"slopes per day, which is the case if "
521+
"degradation_year_on_year(multi_yoy=True). "
522+
"Proceeding to plot with a daily mean which will average out the "
523+
"time-series trend. Recommend re-running with "
524+
"degradation_year_on_year(multi_yoy=False)."
525+
)
521526
roller = results_values.resample('D').mean().rolling(f'{rolling_days}d',
522527
min_periods=rolling_days//2,
523528
center=center)

0 commit comments

Comments
 (0)