-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor esmvalcore.Recipe
#934
Comments
One of the key challenges with A simple use case that we would want in the API (in #962): obtain a list of diagnostic or preprocessor tasks that can be run. At the moment, this required initializing Ideally, we would decouple I had a good discussion with @Peter9192 about this and our conclusion was that |
Had a good discussion with @bouweandela @nielsdrost and @Peter9192 about what the design of |
Is your feature request related to a problem? Please describe.
esmvalcore.Recipe
contains a lot of functionality related to parsing / setting up a recipe, but it is somewhat difficult to use.ESMValCore/esmvalcore/_recipe.py
Line 901 in 9b6f095
For #907 we want to re-use much of the code and data in
Recipe
(e.g. accessing diagnostics / settings data), but the design of the class in its current state prohibits this.At present,
Recipe
is only used once in the entire code base.ESMValCore/esmvalcore/_recipe.py
Line 63 in 9b6f095
I propose we refactor
Recipe
to make the functionality and data more accessible to other objects, so that we can subclass or delegate to it more easily. This will also help in part to address #639Would you be able to help out?
👍
The text was updated successfully, but these errors were encountered: