Skip to content

chunk grid base class should not act as a registry #3734

@d-v-b

Description

@d-v-b

These lines from the base ChunkGrid.from_dict method have it acting as a registry. This is deeply confused. This method should be abstract, and we should use a real registry instead of this logic.

name_parsed, _ = parse_named_configuration(data)
if name_parsed == "regular":
return RegularChunkGrid._from_dict(data)
raise ValueError(f"Unknown chunk grid. Got {name_parsed}.")

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