-
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
Fix diagnostic filter #713
Conversation
* Fixed calculation of time weights * Fixed failing FLAKE8 test * Added more test for time weighting and fixed cube dimensions in test
* Remove utils section (#697) Moved the last script from esmvalcore/utils to ESMValTool * Fixed bug in time weights calculation (#695) * Fixed calculation of time weights * Fixed failing FLAKE8 test * Added more test for time weighting and fixed cube dimensions in test * Avoid pytest version that crashes (#707) * Suggested Documentation changes (#690) Update documentation on relative diagnostics paths and preprocessor order. Co-authored-by: Bouwe Andela <bouweandela@gmail.com> * Options arg in read_config_user_file now optional * Fix codacy warning Co-authored-by: Bouwe Andela <b.andela@esciencecenter.nl> Co-authored-by: Manuel Schlund <32543114+schlunma@users.noreply.github.com> Co-authored-by: Steve Smith <ssmith@pnnl.gov> Co-authored-by: Bouwe Andela <bouweandela@gmail.com>
Tested successfully, thanks for the quick fix! 🎉 I think you should merge this in |
I tried to test this, but how do I select two tasks? I ran
and the output was:
It looks like the second task is somehow interpreted as the config-user file? |
Like this, $ esmvaltool run examples/recipe_python.yml --diagnostics '("diagnostic1/pr", "diagnostic1/script")' but I am going to modify it a bit so it also accepts $ esmvaltool run examples/recipe_python.yml --diagnostics 'diagnostic1/pr diagnostic1/script' |
Thanks! Could you also document that syntax somewhere? |
Yes. Can you please test the branch locally? The tests run fine on my computer but fail in CircleCI, and I do not understand why |
I think it's an old Python issue #719 |
Merging this now, because I want to make the release today. Can you please make a new pull request to document how to use the feature? |
Make syntax to select some diagnostics more intuitive.
There is an issue with the diagnostics filter if you try to filter only one diagnostic (see #712 )
This pull request fixes it
Tasks
yamllint
to check that your YAML files do not contain mistakesIf you need help with any of the tasks above, please do not hesitate to ask by commenting in the issue or pull request.
Closes #712