MCPcopy Create free account
hub / github.com/dask/dask / test_zarr_nocompute

Function test_zarr_nocompute

dask/array/tests/test_array_core.py:5279–5288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5277
5278
5279def test_zarr_nocompute():
5280 pytest.importorskip("zarr")
5281 with tmpdir() as d:
5282 a = da.zeros((3, 3), chunks=(1, 1))
5283 out = a.to_zarr(d, compute=False)
5284 assert isinstance(out, Array)
5285 dask.compute(out)
5286 a2 = da.from_zarr(d)
5287 assert_eq(a, a2)
5288 assert a2.chunks == a.chunks
5289
5290
5291def test_zarr_regions():

Callers

nothing calls this directly

Calls 5

tmpdirFunction · 0.90
assert_eqFunction · 0.90
to_zarrMethod · 0.80
zerosMethod · 0.45
computeMethod · 0.45

Tested by

no test coverage detected