-
Notifications
You must be signed in to change notification settings - Fork 38
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
var has not key 'diagnostic' error when checking var from the recipe #2312
Comments
cheers for raising this @enekomartinmartinez ! |
Thanks @valeriupredoi I tried to provide a minimal example to make it more simple. That's why I am not passing preprocessors or scripts, but the recipe above should be functional. The only missing necessary part is the documentation section and the The fact Note that when the recipe checks are passed, the diagnostic is not inside the var dictionary but the opposite, so when var is extracted in to_datasets._get_facets_from_recipe, the variable dictionary doesn't have that information. This is why check.duplicate_datasets, which is called in the same function, needs to take As the The issue here is that the Note that the fix is already done in #2313. |
Describe the bug
When a necessary entry is missing in a variable, instead of raising the correct error defined in
ESMValCore/esmvalcore/_recipe/check.py
Lines 103 to 112 in 989839f
another error is raised as
var
has no key'diagnostic
. Also a formatf
is missing in line 111.Solving it with a PR.
Please attach
An example with missing
mip
won't produce the expected error message.The text was updated successfully, but these errors were encountered: