Treatment of final smaller chunk in the zarr model #38
Labels
Kerchunk
Relating to the kerchunk library / specification itself
zarr-specs
Requires adoption of a new ZEP
The
ManifestArray
code right now might not be treating carefully enough the possibility of the last chunk being smaller than the rest. For example if you concatenate two arrays that each have uniform chunks except for the final chunk, you could end up with an array that has variable-length chunks in the middle somewhere 😕One solution to this might be to generalise
ManifestArray.chunks
to be able to represent rectilinear arrays of chunks (a step towards #33), but just have a check on the constructor to forbid creating an array that actually has any chunk other than the last be of different length. This check could then be relaxed in future once we have variable-length chunks supported upstream in zarr.The text was updated successfully, but these errors were encountered: