-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
Fix issues with unwrapping longitudes in RangeXY stream #756
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #756 +/- ##
==========================================
+ Coverage 67.21% 67.28% +0.07%
==========================================
Files 44 44
Lines 4642 4649 +7
==========================================
+ Hits 3120 3128 +8
+ Misses 1522 1521 -1 ☔ View full report in Codecov by Sentry. |
I'm starting to think #722 wasn't the right solution because if the data extents are global from I think we need to either warn and project the lons to -180 to 180 or raise an error mentioning that data must be from -180 to 180 for operations to work properly, i.e. ds["lon"] = (ds["lon"] + 180) % 360 - 180
ds = ds.sortby("lon") Separately, there seems to be some padding with the x0/x1:
|
Actually, if we extend the range from -180 to 540, it seems to work as expected: Screen.Recording.2024-10-16.at.10.38.58.AM.movScreen.Recording.2024-10-16.at.10.45.50.AM.mov |
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.
Can you add test cases for all the cases you have tested locally so we don't get any regressions?
If needed, I can set up UI tests.
Yes can you help me set up ui tests or show me a reference? |
1 similar comment
Yes can you help me set up ui tests or show me a reference? |
I have opened a PR with the infrastructure here: #760. I will also try to fix the CI in it and then merge it. |
This PR introduced two separate issues: #722
Fixes #753