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

Method test_univariate_xufunc

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

Source from the content-addressed store, hash-verified

296 assert_sparse_equal(np.maximum(self.data, 0), np.maximum(0, self.var).data)
297
298 def test_univariate_xufunc(self):
299 assert_sparse_equal(xu.sin(self.var).data, np.sin(self.data))
300
301 def test_bivariate_xufunc(self):
302 assert_sparse_equal(xu.multiply(self.var, 0).data, np.multiply(self.data, 0))

Callers

nothing calls this directly

Calls 2

assert_sparse_equalFunction · 0.85
sinMethod · 0.80

Tested by

no test coverage detected