Skip to content

Commit 3fc1648

Browse files
committed
update pcodec
Signed-off-by: mwlon <m.w.loncaric@gmail.com>
1 parent e0ddee6 commit 3fc1648

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

numcodecs/pcodec.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class PCodec(Codec):
2727
structure of the data (e.g. approximate multiples of 0.1) to improve
2828
compression ratio, or skip this step and just use the numbers as-is
2929
(Classic mode). Note that the "try*" specs are not currently supported.
30-
delta_spec : {"auto", "none", "try_consecutive", "try_lookback"}
30+
delta_spec : {"auto", "no_op", "try_consecutive", "try_lookback"}
3131
Configures the delta encoding strategy. By default, uses "auto" which
3232
will try to infer the best encoding order.
3333
paging_spec : {"equal_pages_up_to"}
@@ -48,7 +48,7 @@ def __init__(
4848
level: int = 8,
4949
*,
5050
mode_spec: Literal["auto", "classic"] = "auto",
51-
delta_spec: Literal["auto", "none", "try_consecutive", "try_lookback"] = "auto",
51+
delta_spec: Literal["auto", "no_op", "try_consecutive", "try_lookback"] = "auto",
5252
paging_spec: Literal["equal_pages_up_to"] = "equal_pages_up_to",
5353
delta_encoding_order: int | None = None,
5454
equal_pages_up_to: int = DEFAULT_MAX_PAGE_N,
@@ -82,8 +82,8 @@ def _get_chunk_config(self):
8282
match self.delta_spec:
8383
case "auto":
8484
delta_spec = DeltaSpec.auto()
85-
case "none":
86-
delta_spec = DeltaSpec.none()
85+
case "no_op" | "none": # legacy support for "none"
86+
delta_spec = DeltaSpec.no_op()
8787
case "try_consecutive":
8888
delta_spec = DeltaSpec.try_consecutive(self.delta_encoding_order)
8989
case "try_lookback":

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ zfpy = [
5454
"zfpy>=1.0.0"
5555
]
5656
pcodec = [
57-
"pcodec>=0.3,<0.4",
57+
"pcodec>=1,<2",
5858
]
5959
crc32c = [
6060
"crc32c>=2.7",

0 commit comments

Comments
 (0)