Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:
fail-fast: false
matrix:
python-version:
- "3.11"
- "3.12"
- "3.13"
- "3.14"
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.11
3.12
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ version = "0.2.0"
description = "Utilities for accessing N5 data through zarr v3."
readme = "README.md"
authors = [{ name = "Chris Barnes", email = "chris.barnes@gerbi-gmb.de" }]
requires-python = ">=3.11,<4.0"
dependencies = ["zarr>=3.1.5"]
requires-python = ">=3.12,<4.0"
dependencies = ["zarr>=3.2.0"]

[project.entry-points."zarr.codecs"]
"n5_default" = "zarr_n5:N5DefaultCodec"
Expand Down
4 changes: 2 additions & 2 deletions src/zarr_n5/codec/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from zarr.abc.codec import ArrayBytesCodec, Codec, BytesBytesCodec, CodecPipeline
from zarr.core.array_spec import ArraySpec
from zarr.core.buffer.core import Buffer, NDBuffer
from zarr.core.chunk_grids import ChunkGrid
from zarr.core.metadata.v3 import ChunkGridMetadata
from zarr.core.dtype.wrapper import TBaseDType, ZDType, TBaseScalar
from zarr.core.common import JSON, parse_named_configuration
from zarr.core.metadata.v3 import parse_codecs
Expand Down Expand Up @@ -170,7 +170,7 @@ def validate(
*,
shape: tuple[int, ...],
dtype: ZDType[TBaseDType, TBaseScalar],
chunk_grid: ChunkGrid,
chunk_grid: ChunkGridMetadata,
) -> None:
expected_ndim = len(self.codecs[0].order)
if len(shape) != expected_ndim:
Expand Down
4 changes: 2 additions & 2 deletions src/zarr_n5/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from zarr.core.metadata.v3 import ArrayV3Metadata
from zarr.core.dtype import ZDType
from zarr.core import dtype as zdt
from zarr.core.chunk_grids import RegularChunkGrid
from zarr.core.metadata.v3 import RegularChunkGridMetadata
from zarr.core.chunk_key_encodings import V2ChunkKeyEncoding
from zarr.abc.codec import BytesBytesCodec
from zarr.codecs import blosc
Expand Down Expand Up @@ -130,7 +130,7 @@ def to_zarr(self, mode: N5Mode = N5Mode.DEFAULT):
return ArrayV3Metadata(
shape=self.dimensions,
data_type=COMPATIBLE_DATA_TYPES[self.data_type][0],
chunk_grid=RegularChunkGrid(chunk_shape=self.block_size),
chunk_grid=RegularChunkGridMetadata(chunk_shape=tuple(self.block_size)),
chunk_key_encoding=V2ChunkKeyEncoding("/"),
fill_value=0,
dimension_names=None,
Expand Down
Loading
Loading