We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3459871 commit 8e10124Copy full SHA for 8e10124
numcodecs/zarr3.py
@@ -11,9 +11,9 @@
11
12
from zarr.abc.codec import ArrayArrayCodec, BytesBytesCodec
13
from zarr.buffer import NDBuffer, Buffer, as_numpy_array_wrapper
14
+from zarr.array_spec import ArraySpec
15
from zarr.common import (
16
JSON,
- ArraySpec,
17
parse_named_configuration,
18
product,
19
to_thread,
@@ -32,7 +32,7 @@ def parse_codec_configuration(
32
raise ValueError(
33
f"Expected name to start with '{expected_name_prefix}'. Got {parsed_name} instead."
34
)
35
- id = parsed_name[len(expected_name_prefix):]
+ id = parsed_name[slice(len(expected_name_prefix), None)]
36
return {"id": id, **parsed_configuration}
37
38
0 commit comments