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

Method test_unary_op

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

Source from the content-addressed store, hash-verified

167 assert v.data.chunks == v.roll(x=1).data.chunks
168
169 def test_unary_op(self):
170 u = self.eager_var
171 v = self.lazy_var
172 self.assertLazyAndIdentical(-u, -v)
173 self.assertLazyAndIdentical(abs(u), abs(v))
174 self.assertLazyAndIdentical(u.round(), v.round())
175
176 def test_binary_op(self):
177 u = self.eager_var

Callers

nothing calls this directly

Calls 2

roundMethod · 0.45

Tested by

no test coverage detected