Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
normanrz committed Jun 12, 2024
1 parent 3459871 commit 8e10124
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numcodecs/zarr3.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

from zarr.abc.codec import ArrayArrayCodec, BytesBytesCodec
from zarr.buffer import NDBuffer, Buffer, as_numpy_array_wrapper
from zarr.array_spec import ArraySpec
from zarr.common import (
JSON,
ArraySpec,
parse_named_configuration,
product,
to_thread,
Expand All @@ -32,7 +32,7 @@ def parse_codec_configuration(
raise ValueError(
f"Expected name to start with '{expected_name_prefix}'. Got {parsed_name} instead."
)
id = parsed_name[len(expected_name_prefix):]
id = parsed_name[slice(len(expected_name_prefix), None)]
return {"id": id, **parsed_configuration}


Expand Down

0 comments on commit 8e10124

Please sign in to comment.