-
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
Fixed bug in time weights calculation #695
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice find and fix, are we 100% sure we can not keep things lazy (see my in-line suggestion) 🍺
@bjoernbroetz pls keep an eye on this one -> when it gets merged into |
it's good by me, cheers @schlunma - let's get it in! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mattiarighi Could you please test?
@bouweandela can you please include this in the |
* Fixed calculation of time weights * Fixed failing FLAKE8 test * Added more test for time weighting and fixed cube dimensions in test
Thanks! Done! |
* 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 <[email protected]> * Options arg in read_config_user_file now optional * Fix codacy warning Co-authored-by: Bouwe Andela <[email protected]> Co-authored-by: Manuel Schlund <[email protected]> Co-authored-by: Steve Smith <[email protected]> Co-authored-by: Bouwe Andela <[email protected]>
* 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 <[email protected]> * Options arg in read_config_user_file now optional * Fix codacy warning Co-authored-by: Bouwe Andela <[email protected]> Co-authored-by: Manuel Schlund <[email protected]> Co-authored-by: Steve Smith <[email protected]> Co-authored-by: Bouwe Andela <[email protected]>
This PR fixes the the bug in the calculation of the time weights introduced by #684. I know that this implementation does not use
dask
anymore, but unfortunatelyiris.util.broadcast_to_shape
does not supportdask
.This needs to be included for
v2.0.0
.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 #694.