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

Method test_shift

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

Source from the content-addressed store, hash-verified

154 self.assertLazyAndIdentical(u.T, v.T)
155
156 def test_shift(self):
157 u = self.eager_var
158 v = self.lazy_var
159 self.assertLazyAndIdentical(u.shift(x=2), v.shift(x=2))
160 self.assertLazyAndIdentical(u.shift(x=-2), v.shift(x=-2))
161 assert v.data.chunks == v.shift(x=1).data.chunks
162
163 def test_roll(self):
164 u = self.eager_var

Callers

nothing calls this directly

Calls 2

shiftMethod · 0.45

Tested by

no test coverage detected