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

Function test_zarr_roundtrip

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

Source from the content-addressed store, hash-verified

4951
4952
4953def test_zarr_roundtrip():
4954 pytest.importorskip("zarr")
4955 with tmpdir() as d:
4956 a = da.zeros((3, 3), chunks=(1, 1))
4957 a.to_zarr(d)
4958 a2 = da.from_zarr(d)
4959 assert_eq(a, a2)
4960 assert a2.chunks == a.chunks
4961
4962
4963@pytest.mark.parametrize(

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