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

Method test_unary_op

xarray/tests/test_sparse.py:284–287  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

282 assert self.var.nbytes == self.data.nbytes
283
284 def test_unary_op(self):
285 assert_sparse_equal(-self.var.data, -self.data)
286 assert_sparse_equal(abs(self.var).data, abs(self.data))
287 assert_sparse_equal(self.var.round().data, self.data.round())
288
289 @pytest.mark.filterwarnings("ignore::FutureWarning")
290 def test_univariate_ufunc(self):

Callers

nothing calls this directly

Calls 2

assert_sparse_equalFunction · 0.85
roundMethod · 0.45

Tested by

no test coverage detected