MCPcopy
hub / github.com/pydata/xarray / test_bivariate_xufunc

Method test_bivariate_xufunc

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

Source from the content-addressed store, hash-verified

279 self.assertLazyAndAllClose(np.sin(u), xu.sin(v))
280
281 def test_bivariate_xufunc(self):
282 u = self.eager_var
283 v = self.lazy_var
284 self.assertLazyAndAllClose(np.maximum(u, 0), xu.maximum(v, 0))
285 self.assertLazyAndAllClose(np.maximum(u, 0), xu.maximum(0, v))
286
287 def test_compute(self):
288 u = self.eager_var

Callers

nothing calls this directly

Calls 1

assertLazyAndAllCloseMethod · 0.95

Tested by

no test coverage detected