-
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
Deprecate the function esmvalcore.var_name_constraint
#1592
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1592 +/- ##
=======================================
Coverage 90.83% 90.83%
=======================================
Files 200 200
Lines 10644 10648 +4
=======================================
+ Hits 9668 9672 +4
Misses 976 976
Continue to review full report at Codecov.
|
Sorry, I can't add all these missing tests for the variable derivation here... |
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.
excellent enhancement, Manu! Two questions: is the class NameConstraint
available for only the latest iris, or - what's the minimum version of iris it is available in - since we must pin on that one? And the second question: do we have a list somewhere where we add all these deprecations, so we remember to remove them in said versions? 🍺
oh and don't worry about the coverage issue, we need tests for those to begin with, but we'll plop them in a future PR 👍 |
Cheers V, thanks for the review! 🚀
Apparently it has been added in 2.4, so we should be fine here 😆
That's a very good idea! Afaik we don't have this list yet, but I will open an issue to create one. |
great, cheers, Manu! |
Description
This PR adds an API documentation for the module
esmvalcore.iris_helpers
deprecates the functionvar_name_constraint
in it. It replaces it with iris'NameConstraint
class.Note: I didn't remove the appearances of
var_name_constraint
in the ICON CMORizer on purpose since they are fixed in #1549 and I want to avoid merge conflicts.Closes #1536
Closes #1537
Link to documentation: https://esmvaltool--1592.org.readthedocs.build/projects/ESMValCore/en/1592/api/esmvalcore.iris_helpers.html
Before you get started
Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.
To help with the number pull requests: