MCPcopy Index your code
hub / github.com/dask/dask / test_zarr_roundtrip

Function test_zarr_roundtrip

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

Source from the content-addressed store, hash-verified

4955
4956
4957def test_zarr_roundtrip():
4958 pytest.importorskip("zarr")
4959 with tmpdir() as d:
4960 a = da.zeros((3, 3), chunks=(1, 1))
4961 a.to_zarr(d)
4962 a2 = da.from_zarr(d)
4963 assert_eq(a, a2)
4964 assert a2.chunks == a.chunks
4965
4966
4967@pytest.mark.slow

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…