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

Function test_zarr_existing_array

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

Source from the content-addressed store, hash-verified

5057
5058
5059def test_zarr_existing_array():
5060 zarr = pytest.importorskip("zarr")
5061 c = (1, 1)
5062 a = da.ones((3, 3), chunks=c)
5063 z = zarr.zeros_like(a, chunks=c)
5064 a.to_zarr(z)
5065 a2 = da.from_zarr(z)
5066 assert_eq(a, a2)
5067 assert a2.chunks == a.chunks
5068
5069
5070def test_to_zarr_unknown_chunks_raises():

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
to_zarrMethod · 0.80
onesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…