-
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
Made equalized attributes in concatenated cubes consistent across runs #1783
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1783 +/- ##
=======================================
Coverage 92.10% 92.11%
=======================================
Files 234 234
Lines 12133 12144 +11
=======================================
+ Hits 11175 11186 +11
Misses 958 958
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I like this functionality, but I have three main comments. First, the typical delimiter used in CF is simply " ", i.e. a space, which is not great for many reasons, but still worth considering. It may create problems for some variable values, but for the typical experiment id and variant label, etc., this would be fine and consistent with CF. Second, the name equalize clearly alludes to Iris' own |
Thanks for your input @zklaus!
Fine for me, I don't really have a strong opinion on this. I will change that.
Yes, that definitely makes sense. I will adapt the name.
Good idea! I will open an issue and ask if this feature is something that might be interesting for them. Let's wait for their response until we merge this to avoid having to deprecate this in the next release 😄 |
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 work @schlunma! I left some comments on how the code could be further improved, but it looks fine as it is already.
Co-authored-by: Bouwe Andela <[email protected]>
I wonder if we also should include this in v2.8. Looks like there won't be a solution in iris anytime soon, and this will be a further steps towards reproducible results. |
Co-authored-by: Bouwe Andela <[email protected]>
You still want to do this @schlunma ? Otherwise I can merge this unless you are still waiting for an OK from @zklaus 🍺 |
I opened the issue here SciTools/iris#5050, but I think we can merge it, does not look like we get an iris solution anytime soon |
Description
This PR fixes the ordering attributes for concatenated cubes from multiple source (e.g., multiple experiments). If values are equal across cubes, this value is not changed. If values differ, they are converted to strings, sorted, and joined by a delimiter (default:
|
). Example:exp: historical|ssp585
.Closes #1779
Link to documentation:
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: