-
Notifications
You must be signed in to change notification settings - Fork 284
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
Partial collapse of multi-dim string coords: take 2 #5955
Partial collapse of multi-dim string coords: take 2 #5955
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5955 +/- ##
=======================================
Coverage 89.78% 89.78%
=======================================
Files 88 88
Lines 23056 23060 +4
Branches 5027 5031 +4
=======================================
+ Hits 20700 20704 +4
Misses 1624 1624
Partials 732 732 ☔ View full report in Codecov by Sentry. |
For reference, here is what we currently use for string coordinates in iris/lib/iris/analysis/__init__.py Lines 2437 to 2460 in 95b7ffe
|
0079245
to
638d491
Compare
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.
Looks good.
Thanks @stephenworsley! 🎉 |
🚀 Pull Request
Description
This is the same bugfix as #4294. In there, I also tried to add type hints following my interpretation of the dev guide. This turned out to be complicated and I suspect is the main reason the PR has not made progress.
I think it would be good to fix the bug regardless of typing questions, so here is a version without the type hints which I'm hoping will be an easier review.
Fixes #3653.
If you have a 2D string coordinate on a cube, and collapse one of the dimensions spanned by that coordinate, the coordinate's points (and bounds, if any) are now serialised along the collapsed dimension. This seems to have been missed when partial collapse was implemented for the numeric coordinates.
Consult Iris pull request check list
Add any of the below labels to trigger actions on this PR: