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

Function test_date_cftime

xarray/tests/test_accessor_dt.py:507–512  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

505
506@requires_cftime
507def test_date_cftime(data) -> None:
508 with pytest.raises(
509 AttributeError,
510 match=r"'CFTimeIndex' object has no attribute `date`. Consider using the floor method instead, for instance: `.time.dt.floor\('D'\)`.",
511 ):
512 data.time.dt.date()
513
514
515@requires_cftime

Callers

nothing calls this directly

Calls 1

dateMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…