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

Function test_zarr_roundtrip

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

Source from the content-addressed store, hash-verified

4948
4949
4950def test_zarr_roundtrip():
4951 pytest.importorskip("zarr")
4952 with tmpdir() as d:
4953 a = da.zeros((3, 3), chunks=(1, 1))
4954 a.to_zarr(d)
4955 a2 = da.from_zarr(d)
4956 assert_eq(a, a2)
4957 assert a2.chunks == a.chunks
4958
4959
4960def test_zarr_roundtrip_with_path_like():

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