MCPcopy Index your code
hub / github.com/pydata/xarray / test_contains_cftime_lazy

Function test_contains_cftime_lazy

xarray/tests/test_coding_times.py:1353–1363  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1351
1352@requires_cftime
1353def test_contains_cftime_lazy() -> None:
1354 import cftime
1355
1356 from xarray.core.common import _contains_cftime_datetimes
1357
1358 times = np.array(
1359 [cftime.DatetimeGregorian(1, 1, 2, 0), cftime.DatetimeGregorian(1, 1, 2, 0)],
1360 dtype=object,
1361 )
1362 array = FirstElementAccessibleArray(times)
1363 assert _contains_cftime_datetimes(array)
1364
1365
1366@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…