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

Function _encode_cf_timedelta_within_map_blocks

xarray/coding/times.py:1317–1325  ·  view source on GitHub ↗
(
    timedeltas: T_DuckArray,  # type: ignore[misc]
    units: str,
    dtype: np.dtype,
)

Source from the content-addressed store, hash-verified

1315
1316
1317def _encode_cf_timedelta_within_map_blocks(
1318 timedeltas: T_DuckArray, # type: ignore[misc]
1319 units: str,
1320 dtype: np.dtype,
1321) -> T_DuckArray:
1322 num, _ = _eagerly_encode_cf_timedelta(
1323 timedeltas, units, dtype, allow_units_modification=False
1324 )
1325 return num
1326
1327
1328def _lazily_encode_cf_timedelta(

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…