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

Method test_compute

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

Source from the content-addressed store, hash-verified

407 self.assertLazyAndAllClose(u, actual)
408
409 def test_compute(self):
410 u = self.eager_array
411 v = self.lazy_array
412
413 assert dask.is_dask_collection(v)
414 (v2,) = dask.compute(v + 1)
415 assert not dask.is_dask_collection(v2)
416
417 assert ((u + 1).data == v2.data).all()
418
419 def test_persist(self):
420 u = self.eager_array

Callers

nothing calls this directly

Calls 2

computeMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected