MCPcopy
hub / github.com/pydata/xarray / _contains_datetime_timedeltas

Function _contains_datetime_timedeltas

xarray/coding/cftimeindex.py:815–818  ·  view source on GitHub ↗

Check if an input array contains datetime.timedelta objects.

(array)

Source from the content-addressed store, hash-verified

813
814
815def _contains_datetime_timedeltas(array):
816 """Check if an input array contains datetime.timedelta objects."""
817 array = np.atleast_1d(array)
818 return isinstance(array[0], timedelta)
819
820
821def _cftimeindex_from_i8(values, date_type, name):

Callers 1

__sub__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…