MCPcopy Create free account
hub / github.com/pydata/xarray / test_infer_cftime_datetime_units

Function test_infer_cftime_datetime_units

xarray/tests/test_coding_times.py:576–579  ·  view source on GitHub ↗
(calendar, date_args, expected)

Source from the content-addressed store, hash-verified

574)
575@pytest.mark.parametrize(("date_args", "expected"), _CFTIME_DATETIME_UNITS_TESTS)
576def test_infer_cftime_datetime_units(calendar, date_args, expected) -> None:
577 date_type = _all_cftime_date_types()[calendar]
578 dates = list(starmap(date_type, date_args))
579 assert expected == infer_datetime_units(dates)
580
581
582@pytest.mark.filterwarnings("ignore:Timedeltas can't be serialized faithfully")

Callers

nothing calls this directly

Calls 2

_all_cftime_date_typesFunction · 0.90
infer_datetime_unitsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…