Skip to content

don't put config-checking logic in rectangular chunk grid constructor #3911

@d-v-b

Description

@d-v-b

also... we should rethink putting the config check inside the chunk grid class itself. If someone wants to import the class and construct it, that should be allowed.

Originally posted by @d-v-b in #3909 (comment)

the rectilinear chunk grid has a __post_init__ routine that checks the global config and errors if the rectilinear chunk grid feature is not enabled. I think it would be better to handle the config checking in a higher-level routine that creates the chunk grid. This would allow users to deliberately import the chunk grid class and construct it without bothering with the global config.

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