-
Notifications
You must be signed in to change notification settings - Fork 130
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 the functions in derive_evspsblpot due to new iris #2023
Conversation
@ESMValGroup/tech-reviewers this PR is ready for review. Who has time for it? Thank you. |
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.
Hey Sarah, nice digging and I guess the workaround is fine for now. However, I think this doesn't improve the overall clarity of the code (ideally the equations can be mapped on to one to those in the paper), so we should consider reverting this once the bug is properly solved in Iris.
I'm surprised that codacy doesn't complain about the import order. Can you verify with isort?
import numpy as np | ||
import iris |
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.
Doesn't isort want it the other way around?
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.
Thank you. Running prospector
on this file didn't complain about it, pylint
says: third party import "import numpy as np" should be placed before "import iris"pylint.
@ESMValGroup/esmvaltool-coreteam this PR is ready for a merge. Thank you. |
Description
Before you get started
Checklist
It is the responsibility of the author to make sure the PR is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.
🛠 YAML files passpre-commit
oryamllint
checks🛠 Documentation builds successfully on readthedocsNew or updated recipe/diagnostic:
🛠 Provenance information has been added🛠 New dependencies are added to the [project requirements](https://docs.esmvaltool.org/en/latest/community/diagnostic.html#additional-dependencies)@esmvalbot
or some other machine without modification### New or updated data reformatting script:To help with the number pull requests: