Skip to content

Bug: Handle synonyms of V3 codecs when serializing to V2 formats #823

Description

@maxrjones

As explained in zarr-developers/zarr-python#3332 (comment), for a codec that takes no configuration at all, {'name': 'foo', 'configuration': {}} or {'name': 'foo'} or 'foo' (plain string) are all synonyms, as per the 3.1 spec.

The codepath we use for writing Kerchunk references only works for the {'name': 'foo', 'configuration': {}} version:

return {"id": name, **num_codec["configuration"]}

We should add support for the'name': 'foo', and 'foo' versions.

cc @d-v-b

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions