-
-
Notifications
You must be signed in to change notification settings - Fork 364
Closed
Labels
bugPotential issues with the zarr-python libraryPotential issues with the zarr-python library
Description
Zarr version
latest main
Numcodecs version
0.16.2
Python Version
3.13
Operating System
Windows
Installation
pip install into virtual env
Description
numcodecs.zarr3
codecs were recently moved to zarr.codecs.numcodecs._codecs
. Most are fetched correctly with get_codec_class
, but gzip
results in a user warning (see code below).
I have a fix for this locally, and will submit a PR shortly.
Steps to reproduce
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "zarr@git+https://github.com/zarr-developers/zarr-python.git@main",
# ]
# ///
#
# This script automatically imports the development branch of zarr to check for issues
from zarr.registry import get_codec_class
print(get_codec_class("numcodecs.zstd"))
print(get_codec_class("numcodecs.gzip"))
Output:
<class 'zarr.codecs.numcodecs._codecs.Zstd'>
c:\Users\kimme\Documents\Repos\forked\zarr-python\data\tmp\test.py:11: ZarrUserWarning: Codec 'numcodecs.gzip' not configured in config. Selecting any implementation.
print(get_codec_class("numcodecs.gzip"))
<class 'numcodecs.zarr3.GZip'>
Gzip throws a UserWarning
and returns the old numcodecs.zarr3
implementation.
Additional output
No response
Metadata
Metadata
Assignees
Labels
bugPotential issues with the zarr-python libraryPotential issues with the zarr-python library