From ba6d32c001f9b25e8412749dfc75ea6e58d5bbd6 Mon Sep 17 00:00:00 2001 From: veenstrajelmer Date: Wed, 4 Sep 2024 11:09:23 +0200 Subject: [PATCH] minimized diff --- hatyan/analysis_prediction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hatyan/analysis_prediction.py b/hatyan/analysis_prediction.py index 3c5dc76b..f8445579 100644 --- a/hatyan/analysis_prediction.py +++ b/hatyan/analysis_prediction.py @@ -558,7 +558,7 @@ def prediction(comp, times=None, timestep=None): tstart = pd.Timestamp(period_dt.year, 1, 1) tstop = pd.Timestamp(period_dt.year+1, 1, 1) - pd.Timedelta(tstep) elif period_dt.freqstr in ['M']: #month frequency - tstart = pd.Timestamp(period_dt.to_timestamp()) + tstart = period_dt.to_timestamp() tstop = period_dt.to_timestamp() + pd.Timedelta(days=period_dt.days_in_month) - pd.Timedelta(tstep) else: raise Exception(f'unknown freqstr: {period_dt.freqstr}')