Skip to content

Can't use zarr.create to make v2 array with no compressor #3038

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dstansby opened this issue May 6, 2025 · 0 comments · Fixed by #3039
Closed

Can't use zarr.create to make v2 array with no compressor #3038

dstansby opened this issue May 6, 2025 · 0 comments · Fixed by #3039
Labels
bug Potential issues with the zarr-python library

Comments

@dstansby
Copy link
Contributor

dstansby commented May 6, 2025

In zarr-python 2:

import zarr

arr = zarr.create(store={}, shape=(1), dtype='uint8', compressor=None)
print(arr.compressor)
# None

In zarr-python 3:

import zarr

arr = zarr.create(store={}, shape=(1), dtype='uint8', zarr_format=2, compressor=None)
print(arr.compressors)
# (Zstd(level=0),)

I was expecting the list of compressors to be empty, becuase by passing compressor=None I'm specifying explicitly to have no compressors.

@dstansby dstansby added the bug Potential issues with the zarr-python library label May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Potential issues with the zarr-python library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant