Skip to content
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

Setting default compressor for v2 arrays sets filters #2581

Open
jhamman opened this issue Dec 20, 2024 · 0 comments
Open

Setting default compressor for v2 arrays sets filters #2581

jhamman opened this issue Dec 20, 2024 · 0 comments
Labels
bug Potential issues with the zarr-python library

Comments

@jhamman
Copy link
Member

jhamman commented Dec 20, 2024

Zarr version

3.0.0b4.dev7+g122760fc.d20241213

Numcodecs version

v0.14

Python Version

3.11

Operating System

Mac

Installation

hatch

Description

Setting the v2_default_compressor to blosc results in the filters attribute being set, not the compressor attribute.

Steps to reproduce

with zarr.config.set({'array.v2_default_compressor.numeric': 'blosc'}):
    z = zarr.zeros(100000000, chunks=1000000, zarr_format=2)

z.metadata.filters
# (Blosc(cname='lz4', clevel=5, shuffle=SHUFFLE, blocksize=0),)

z.metadata.compressor
# None

Additional output

No response

@jhamman jhamman added the bug Potential issues with the zarr-python library label Dec 20, 2024
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

No branches or pull requests

1 participant