Chunk padding is non-deterministic with zarr_format=2
#2696
Labels
bug
Potential issues with the zarr-python library
zarr_format=2
#2696
Zarr version
3.0.0
Numcodecs version
0.14.0
Python Version
3.11
Operating System
Mac
Installation
pip
Description
When using
zarr_format=2
with Zarr Python 3.0.0 it's possible to write chunks that have a different size each time they are written (even with the same data). This doesn't occur ifzarr_format=3
, or with Zarr Python 2.The problem seems to be that the chunk is initialized with no fill value (using
np.empty
).This was found in sgkit-dev/bio2zarr#288 (comment).
Steps to reproduce
Example output (changes from run to run):
Changing to
zarr_format=3
, and the key to"c/0"
gives the following consistently:Additional output
No response
The text was updated successfully, but these errors were encountered: