Skip to content

Test roundtripping of Blosc codec to/from Kerchunk #714

@maxrjones

Description

@maxrjones

@d-v-b pointed out that the Zarr V2/V3 codec metadata conversion extended in #713 and originally included in

def numcodec_config_to_configurable(num_codec: dict) -> dict:
"""
Convert a numcodecs codec into a zarr v3 configurable.
"""
if num_codec["id"].startswith("numcodecs."):
return num_codec
num_codec_copy = num_codec.copy()
name = "numcodecs." + num_codec_copy.pop("id")
return {"name": name, "configuration": num_codec_copy}
may not work for Blosc because the v3 version of the blosc codec uses different values. We should test specifically for this case and special-case this compressor if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions