File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ def _convert_compressor(
252
252
return GzipCodec (level = compressor .level )
253
253
254
254
case _:
255
- # If possible, find matching numcodecs.zarr3 codec
255
+ # If possible, find matching zarr.codecs.numcodecs codec
256
256
compressor_codec = _find_numcodecs_zarr3 (compressor )
257
257
258
258
if not isinstance (compressor_codec , BytesBytesCodec ):
@@ -262,7 +262,7 @@ def _convert_compressor(
262
262
263
263
264
264
def _find_numcodecs_zarr3 (numcodecs_codec : numcodecs .abc .Codec ) -> Codec :
265
- """Find matching numcodecs.zarr3 codec (if it exists)"""
265
+ """Find matching zarr.codecs.numcodecs codec (if it exists)"""
266
266
267
267
numcodec_name = f"numcodecs.{ numcodecs_codec .codec_id } "
268
268
numcodec_dict = {
@@ -274,7 +274,7 @@ def _find_numcodecs_zarr3(numcodecs_codec: numcodecs.abc.Codec) -> Codec:
274
274
codec_v3 = get_codec_class (numcodec_name )
275
275
except KeyError as exc :
276
276
raise ValueError (
277
- f"Couldn't find corresponding numcodecs.zarr3 codec for { numcodecs_codec .codec_id } "
277
+ f"Couldn't find corresponding zarr.codecs.numcodecs codec for { numcodecs_codec .codec_id } "
278
278
) from exc
279
279
280
280
return codec_v3 .from_dict (numcodec_dict )
Original file line number Diff line number Diff line change 13
13
from zarr .codecs .blosc import BloscCodec
14
14
from zarr .codecs .bytes import BytesCodec
15
15
from zarr .codecs .gzip import GzipCodec
16
- from zarr .codecs .numcodecs . _codecs import LZMA , Delta
16
+ from zarr .codecs .numcodecs import LZMA , Delta
17
17
from zarr .codecs .transpose import TransposeCodec
18
18
from zarr .codecs .zstd import ZstdCodec
19
19
from zarr .core .array import Array
@@ -506,7 +506,8 @@ def test_migrate_unknown_codec(local_store: LocalStore) -> None:
506
506
assert result .exit_code == 1
507
507
assert isinstance (result .exception , ValueError )
508
508
assert (
509
- str (result .exception ) == "Couldn't find corresponding numcodecs.zarr3 codec for categorize"
509
+ str (result .exception )
510
+ == "Couldn't find corresponding zarr.codecs.numcodecs codec for categorize"
510
511
)
511
512
512
513
You can’t perform that action at this time.
0 commit comments