@@ -65,14 +65,14 @@ def build_simulation(config, profiles=None):
65
65
config ['StopDate' ] = (y_end , m_end , d_end , 23 , 59 , 00 ) # updating stopdate to the end of the day
66
66
67
67
# Indexes of the simulation:
68
- config ['idx' ] = pd .DatetimeIndex (pd .date_range (start = pd .datetime (* config ['StartDate' ]),
69
- end = pd .datetime (* config ['StopDate' ]),
68
+ config ['idx' ] = pd .DatetimeIndex (pd .date_range (start = dt .datetime (* config ['StartDate' ]),
69
+ end = dt .datetime (* config ['StopDate' ]),
70
70
freq = commons ['TimeStep' ])).tz_localize (None )
71
71
72
72
73
73
# Indexes for the whole year considered in StartDate
74
- idx_year = pd .DatetimeIndex (pd .date_range (start = pd .datetime (* (config ['StartDate' ][0 ],1 ,1 ,0 ,0 )),
75
- end = pd .datetime (* (config ['StartDate' ][0 ],12 ,31 ,23 ,59 ,59 )),
74
+ idx_year = pd .DatetimeIndex (pd .date_range (start = dt .datetime (* (config ['StartDate' ][0 ],1 ,1 ,0 ,0 )),
75
+ end = dt .datetime (* (config ['StartDate' ][0 ],12 ,31 ,23 ,59 ,59 )),
76
76
freq = commons ['TimeStep' ])
77
77
)
78
78
@@ -943,8 +943,8 @@ def mid_term_scheduling(config, zones, profiles=None):
943
943
config ['StopDate' ] = (y_end , m_end , d_end , 23 , 59 , 00 ) # updating stopdate to the end of the day
944
944
945
945
# Indexes of the simualtion:
946
- idx_std = pd .DatetimeIndex (start = pd .datetime (* config ['StartDate' ]),
947
- end = pd .datetime (* config ['StopDate' ]),
946
+ idx_std = pd .DatetimeIndex (start = dt .datetime (* config ['StartDate' ]),
947
+ end = dt .datetime (* config ['StopDate' ]),
948
948
freq = commons ['TimeStep' ])
949
949
idx_utc_noloc = idx_std - dt .timedelta (hours = 1 )
950
950
idx = idx_utc_noloc
0 commit comments