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

Method test_rolling

xarray/tests/test_dask.py:587–594  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

585 self.assertLazyAndAllClose(expected, actual)
586
587 def test_rolling(self):
588 u = self.eager_array
589 v = self.lazy_array
590
591 expected = u.rolling(x=2).mean()
592 with raise_if_dask_computes():
593 actual = v.rolling(x=2).mean()
594 self.assertLazyAndAllClose(expected, actual)
595
596 @pytest.mark.parametrize("func", ["first", "last"])
597 def test_groupby_first_last(self, func):

Callers

nothing calls this directly

Calls 4

assertLazyAndAllCloseMethod · 0.95
raise_if_dask_computesFunction · 0.90
meanMethod · 0.45
rollingMethod · 0.45

Tested by

no test coverage detected