-
-
Couldn't load subscription status.
- Fork 365
Closed
Labels
bugPotential issues with the zarr-python libraryPotential issues with the zarr-python library
Description
Zarr version
3.0.4+
Numcodecs version
0.15.0
Python Version
3.12
Operating System
Linux
Installation
See reproducer
Description
The ZFPY and Pcodec codecs (and perhaps more) fail since 3.0.4 because they expect input arrays to be contiguous
Steps to reproduce
#!/usr/bin/env -S uv run
# /// script
# requires-python = ">=3.12"
# dependencies = [
# # "zarr==3.0.2,<3.0.3", # WORKS
# "zarr==3.0.4", # FAILS
# "numcodecs==0.15.0",
# "zfpy==1.0.1",
# "pcodec==0.3.2",
# ]
# ///
import numpy as np
import zarr
from numcodecs.zarr3 import ZFPY, PCodec
for serializer in [
ZFPY(mode = 4, tolerance=0.01),
PCodec(level = 8, mode_spec="auto")
]:
array = zarr.create_array(
store=zarr.storage.MemoryStore(),
shape=[2, 2],
chunks=[2, 1],
dtype=np.float32,
serializer=serializer,
)
array[...] = np.array([[0, 1],[2, 3]])Additional output
No response
Metadata
Metadata
Assignees
Labels
bugPotential issues with the zarr-python libraryPotential issues with the zarr-python library