zarr-developers / zarr-python

An implementation of chunked, compressed, N-dimensional arrays for Python.
https://zarr.readthedocs.io
MIT License
1.52k stars 281 forks source link

auto chunks #2019

Closed d-v-b closed 3 months ago

d-v-b commented 3 months ago

At the moment, if you attempt to call Array.create without specifying chunks or chunk_shape, a ValueError is raised. But I think we should allow automatically creating chunks if the chunks are not specified. In the short term we can use the same heuristic that zarr v2 uses, and in the longer term we could consider making this behavior a configuration point.

jhamman commented 3 months ago

This should be easy to port from v2.

d-v-b commented 3 months ago

this is implemented in https://github.com/zarr-developers/zarr-python/pull/2042

d-v-b commented 3 months ago

closed by #2042