-
Notifications
You must be signed in to change notification settings - Fork 153
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
Angle units in full-sphere projections #2279
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2279 +/- ##
==========================================
- Coverage 88.15% 88.09% -0.07%
==========================================
Files 247 247
Lines 23327 23350 +23
==========================================
+ Hits 20565 20571 +6
- Misses 2762 2779 +17
Continue to review full report at Codecov.
|
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.
This looks good but to check the CI failures this should be rebased once #2284 is merged.
d9ecb36
to
e2222a5
Compare
@Carifio24 could you add a changelog entry for a new 1.4.0 version in the changelog? |
@astrofrog Just added the changelog entry |
…rojections. Fix an issue with the radian formatter that never surfaced in polar mode.
…n apply to either coordinate in the full-sphere projections.
…transform on based on the projection type.
4817497
to
5c64fe2
Compare
I've rebased to fix a conflict |
This PR adds support for using degrees in the four full-sphere projections (Aitoff, Hammer, Mollweide, and Lambert) in the scatter viewer. Tick mark formatting has also been adjusted to match the angle units being used (tick mark locations have been left unchanged). I split the full-sphere projection test (in the Qt scatter viewer tests) into two separate tests, one for each angle unit.
Since the
RadianTransform
ROI pre-transform originally only applied the transformation to the x component (as it was created with polar plots in mind), I added acoords
parameter which allows specifying which coordinates are angular, as the full-sphere projections have two angular coordinates. This would cause a problem for older sessions that use a previous version ofRadianTransform
. To work around this, I've added a patch which will set coords to be['x']
if it's missing (since this would be the appropriate value for polar plots).