-
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
Allowed ignoring scalar coordinates in multi_model_statistics
#1934
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1934 +/- ##
=======================================
Coverage 92.18% 92.18%
=======================================
Files 234 234
Lines 12205 12213 +8
=======================================
+ Hits 11251 11259 +8
Misses 954 954
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it 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.
very cool, Manu! Just a couple of very minor review points from me 🍺 Would we want to extend that [p0, ptop] list of coords to be always removed? If so, I'd put that at the top of the mm script, for now, maybe we'll take it out from there and expose it to the API some time in the future. About boolean (true or false) - it's always nice to tell the users stuff in layman terms, you know 😁
Thanks for the quick review @valeriupredoi!
I don't think we should expose this to the public API, especially with that new option now. We can also extend that list in there 👍 |
Perfect then! Even less knobs and buttons for users to deal with it - I like it. Great work on this, hope signor Lovato is 'appy now, after we've left him out for dry for such a long time 😁 |
thanks a lot for the quick response @schlunma & @valeriupredoi |
@ESMValGroup/technical-lead-development-team this is niice (in Borat accent) and ready for merging - please have a look and merge at earliest convenience, if you dillydally about it, myself or @remi-kazeroni will merge (given tight schedule on 2.8 freeze) |
It's a little bit muddled, isn't it? The documentation states
and
but it's not quite clear what "ignore" really means and the code just removes all scalar coordinates.
In lieu of implementing the behavior suggested by the documentation, i.e. removing only the differing scalar coordinates, I suggest clarifying the documentation in the two places mentioned above to make it easier to understand for the user what is happening. |
bit of a 🐔 - 🥚 problem, @zklaus -> ignoring stuff in input cubes means said stuff is not present in output cube(s) - that sounds very logical to me as @schlunma wrote it, but I would indeed change: To ignore different scalar coordinates in the input datasets, use the option with To ignore all scalar coordinates in the input datasets, use the option |
@zklaus I tried to improve the documentation, could you take another look? Thanks! |
Description
This PR allows the optional keyword
ignore_scalar_coords
for themulti_model_statistics
andensemble_statistics
preprocessors. With this setting enabled, different scalar coords in the input cubes are ignored and do not raise mergeMergeError
s.Closes #1606
Link to documentation: https://esmvaltool--1934.org.readthedocs.build/projects/ESMValCore/en/1934/recipe/preprocessor.html#multi-model-statistics
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: