Skip to content

Commit 7aba05a

Browse files
authored
Merge pull request #240 from arbennett/fix/calendars
Fix disaggregate to use correct calendar
2 parents 1582960 + fac7df5 commit 7aba05a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

metsim/disaggregate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ def disaggregate(df_daily: pd.DataFrame, params: dict,
6565
stop = (df_daily.index[-1] + pd.Timedelta('1 days') -
6666
pd.Timedelta("{} minutes".format(params['time_step'])))
6767
dates_disagg = date_range(df_daily.index[0], stop,
68-
freq='{}T'.format(params['time_step']))
68+
freq='{}T'.format(params['time_step']),
69+
calendar=params['calendar'])
6970
df_disagg = pd.DataFrame(index=dates_disagg)
7071
n_days = len(df_daily)
7172
n_disagg = len(df_disagg)

0 commit comments

Comments
 (0)