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

Function test_read_zarr_chunks

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

Source from the content-addressed store, hash-verified

5076
5077
5078def test_read_zarr_chunks():
5079 pytest.importorskip("zarr")
5080 a = da.zeros((9,), chunks=(3,))
5081 with tmpdir() as d:
5082 a.to_zarr(d)
5083 arr = da.from_zarr(d, chunks=(5,))
5084 assert arr.chunks == ((5, 4),)
5085
5086
5087def test_zarr_pass_store():

Callers

nothing calls this directly

Calls 3

tmpdirFunction · 0.90
to_zarrMethod · 0.80
zerosMethod · 0.45

Tested by

no test coverage detected