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

Function test_non_tick_option_warning

xarray/tests/test_cftimeindex_resample.py:301–306  ·  view source on GitHub ↗
(option, value)

Source from the content-addressed store, hash-verified

299
300@pytest.mark.parametrize(("option", "value"), [("offset", "5s"), ("origin", "start")])
301def test_non_tick_option_warning(option, value) -> None:
302 cftime_index = xr.date_range("2000", periods=5, use_cftime=True)
303 da_cftime = da(cftime_index)
304 kwargs = {option: value}
305 with pytest.warns(RuntimeWarning, match=option):
306 da_cftime.resample(time="ME", **kwargs)

Callers

nothing calls this directly

Calls 2

daFunction · 0.70
resampleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…