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.
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.