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
zarr3: Fix DecodeChunk and EncodeChunk for void access
The codec chain is prepared for the original dtype and chunk shape
(without the extra bytes dimension). For void access:
DecodeChunk:
- Strip the bytes dimension from grid's chunk_shape to get original shape
- Decode using the original codec shape
- Reinterpret the decoded bytes as [chunk_shape..., bytes_per_elem]
EncodeChunk:
- Input has shape [chunk_shape..., bytes_per_elem] of byte_t
- Create a view with the original chunk shape and element_size
- Encode using the original codec
This follows the pattern from zarr v2 (PR google#272) where the void metadata
has the chunk_layout computed to match encoded/decoded layouts.
0 commit comments