MCPcopy
hub / github.com/pydata/xarray / test_rolling_repr

Method test_rolling_repr

xarray/tests/test_rolling.py:72–78  ·  view source on GitHub ↗
(self, da)

Source from the content-addressed store, hash-verified

70
71 @pytest.mark.parametrize("da", (1,), indirect=True)
72 def test_rolling_repr(self, da) -> None:
73 rolling_obj = da.rolling(time=7)
74 assert repr(rolling_obj) == "DataArrayRolling [time->7]"
75 rolling_obj = da.rolling(time=7, center=True)
76 assert repr(rolling_obj) == "DataArrayRolling [time->7(center)]"
77 rolling_obj = da.rolling(time=7, x=3, center=True)
78 assert repr(rolling_obj) == "DataArrayRolling [time->7(center),x->3(center)]"
79
80 @requires_dask
81 def test_repeated_rolling_rechunks(self) -> None:

Callers

nothing calls this directly

Calls 1

rollingMethod · 0.45

Tested by

no test coverage detected