File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -828,15 +828,8 @@ def _get_openscmdata_time_axis_and_calendar(
828
828
"of time between dates" .format (out_calendar )
829
829
)
830
830
time_axis = _vector_cftime_conversion (time_axis )
831
- elif isinstance (time_axis [0 ], datetime ):
832
- pass
833
- elif isinstance (time_axis [0 ], int ):
834
- # TODO: put in openscm
835
- warnings .warn ("Integer time axis will be put on 1st Jan of each year" )
836
- elif isinstance (time_axis [0 ], float ):
837
- pass
838
- else : # pragma: no cover # emergency valve
839
- raise TypeError ("unrecognised time axis format: {}" .format (type (time_axis [0 ])))
831
+ else :
832
+ pass # leave openscm to handle from here
840
833
841
834
# As we sometimes have to deal with long timeseries, we force the index to be
842
835
# pd.Index and not pd.DatetimeIndex. We can't use DatetimeIndex because of a
You can’t perform that action at this time.
0 commit comments