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

Function test_cftimeindex_shift_float_us

xarray/tests/test_cftimeindex.py:850–855  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

848
849@requires_cftime
850def test_cftimeindex_shift_float_us() -> None:
851 a = xr.date_range("2000", periods=3, freq="D", use_cftime=True)
852 with pytest.raises(
853 ValueError, match="Could not convert to integer offset at any resolution"
854 ):
855 a.shift(2.5, "us")
856
857
858@requires_cftime

Callers

nothing calls this directly

Calls 1

shiftMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…