Skip to content

Commit

Permalink
minimized diff
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Sep 4, 2024
1 parent 251329c commit ba6d32c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hatyan/analysis_prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}')
Expand Down

0 comments on commit ba6d32c

Please sign in to comment.