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

Method test_compute

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

Source from the content-addressed store, hash-verified

285 self.assertLazyAndAllClose(np.maximum(u, 0), xu.maximum(0, v))
286
287 def test_compute(self):
288 u = self.eager_var
289 v = self.lazy_var
290
291 assert dask.is_dask_collection(v)
292 (v2,) = dask.compute(v + 1)
293 assert not dask.is_dask_collection(v2)
294
295 assert ((u + 1).data == v2.data).all()
296
297 def test_persist(self):
298 u = self.eager_var

Callers

nothing calls this directly

Calls 2

computeMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected