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

Method test_bivariate_ufunc

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

Source from the content-addressed store, hash-verified

292
293 @pytest.mark.filterwarnings("ignore::FutureWarning")
294 def test_bivariate_ufunc(self):
295 assert_sparse_equal(np.maximum(self.data, 0), np.maximum(self.var, 0).data)
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))

Callers

nothing calls this directly

Calls 1

assert_sparse_equalFunction · 0.85

Tested by

no test coverage detected