You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data_adapter的_validate_known_cov_timeseries方法RangeIndex是不是逻辑上面有问题
else:
# RangeIndex
# Note: RangeIndex.stop is right-opened, but time_window is right-closed, so stop param must + 1.
step = self._std_timeindex.step
exceeded_timeindex = pd.RangeIndex(
start=self._std_timeindex[-1],
stop=(self._time_window[1] + 1) * step,
step=step
)
sample_end_std_time = exceeded_timeindex[-1]
start=self._std_timeindex[-1]的取值为什么取的是RangeIndex的stop值,导致exceeded_timeindexs的size为0,sample_end_std_time = exceeded_timeindex[-1]这行代码报IndexError: index -1 is out of bounds for axis 0 with size 0
The text was updated successfully, but these errors were encountered:
data_adapter的_validate_known_cov_timeseries方法RangeIndex是不是逻辑上面有问题
else:
# RangeIndex
# Note: RangeIndex.stop is right-opened, but time_window is right-closed, so stop param must + 1.
step = self._std_timeindex.step
exceeded_timeindex = pd.RangeIndex(
start=self._std_timeindex[-1],
stop=(self._time_window[1] + 1) * step,
step=step
)
sample_end_std_time = exceeded_timeindex[-1]
start=self._std_timeindex[-1]的取值为什么取的是RangeIndex的stop值,导致exceeded_timeindexs的size为0,sample_end_std_time = exceeded_timeindex[-1]这行代码报IndexError: index -1 is out of bounds for axis 0 with size 0
The text was updated successfully, but these errors were encountered: