Skip to content

Commit 8d86f05

Browse files
authored
Merge branch 'main' into feat/get-many
2 parents 8754f85 + 23e9635 commit 8d86f05

27 files changed

Lines changed: 1948 additions & 82 deletions

changes/3874.feature.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add `cast_value` and `scale_offset` codecs.

changes/3924.bugfix.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ remote = [
6969
gpu = [
7070
"cupy-cuda12x",
7171
]
72+
cast-value-rs = ["cast-value-rs"]
7273
cli = ["typer"]
7374
optional = ["universal-pathlib"]
7475

@@ -166,6 +167,7 @@ matrix.deps.features = [
166167
{value = "remote", if = ["optional"]},
167168
{value = "optional", if = ["optional"]},
168169
{value = "cli", if = ["optional"]},
170+
{value = "cast-value-rs", if = ["optional"]},
169171
]
170172
matrix.deps.dependency-groups = [
171173
{value = "remote-tests", if = ["optional"]},

src/zarr/codecs/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from zarr.codecs.blosc import BloscCname, BloscCodec, BloscShuffle
44
from zarr.codecs.bytes import BytesCodec, Endian
5+
from zarr.codecs.cast_value import CastValue
56
from zarr.codecs.crc32c_ import Crc32cCodec
67
from zarr.codecs.gzip import GzipCodec
78
from zarr.codecs.numcodecs import (
@@ -27,6 +28,7 @@
2728
Zlib,
2829
Zstd,
2930
)
31+
from zarr.codecs.scale_offset import ScaleOffset
3032
from zarr.codecs.sharding import ShardingCodec, ShardingCodecIndexLocation
3133
from zarr.codecs.transpose import TransposeCodec
3234
from zarr.codecs.vlen_utf8 import VLenBytesCodec, VLenUTF8Codec
@@ -38,9 +40,11 @@
3840
"BloscCodec",
3941
"BloscShuffle",
4042
"BytesCodec",
43+
"CastValue",
4144
"Crc32cCodec",
4245
"Endian",
4346
"GzipCodec",
47+
"ScaleOffset",
4448
"ShardingCodec",
4549
"ShardingCodecIndexLocation",
4650
"TransposeCodec",
@@ -50,12 +54,14 @@
5054
]
5155

5256
register_codec("blosc", BloscCodec)
57+
register_codec("cast_value", CastValue)
5358
register_codec("bytes", BytesCodec)
5459

5560
# compatibility with earlier versions of ZEP1
5661
register_codec("endian", BytesCodec)
5762
register_codec("crc32c", Crc32cCodec)
5863
register_codec("gzip", GzipCodec)
64+
register_codec("scale_offset", ScaleOffset)
5965
register_codec("sharding_indexed", ShardingCodec)
6066
register_codec("zstd", ZstdCodec)
6167
register_codec("vlen-utf8", VLenUTF8Codec)

0 commit comments

Comments
 (0)