You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importzarrarr=zarr.Array.create(store=zarr.store.MemoryStore(), shape=(10,), chunks=(5,), dtype="i4")
arr.chunks# -> attribute error# instead it is available atarr.metadata.chunk_grid.chunk_shape
It would be a pretty disruptive API change to remove this. I understand that the ChunkGrid concept makes this more complicated to support. We should reimplement a sane default for this attribute for regular chunk grids. So much code likely relies on this parameter.
The text was updated successfully, but these errors were encountered:
👍 - we've discussed this. A bit of thought will be needed for how to handle other chunk grids (as you say) but for now, we should just pass arr.metadata.chunk_grid.chunk_shape as a property of the array.
Similar to: #1924
V2 arrays have a
.chunks
attribute: https://zarr.readthedocs.io/en/stable/_autoapi/zarr.core.Array.html#zarr.core.Array.chunksV3 arrays don't:
It would be a pretty disruptive API change to remove this. I understand that the ChunkGrid concept makes this more complicated to support. We should reimplement a sane default for this attribute for regular chunk grids. So much code likely relies on this parameter.
The text was updated successfully, but these errors were encountered: