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:5017–5023  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5015
5016
5017def test_read_zarr_chunks():
5018 pytest.importorskip("zarr")
5019 a = da.zeros((9,), chunks=(3,))
5020 with tmpdir() as d:
5021 a.to_zarr(d)
5022 arr = da.from_zarr(d, chunks=(5,))
5023 assert arr.chunks == ((5, 4),)
5024
5025
5026def 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