-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
Return quantity objects in pix2world and world2pix transformations #276
Conversation
b400c6f
to
d70e87f
Compare
(note the test failure looks real, @nmearl , so I'm waiting on that to review this) |
00ed223
to
3b2b1e2
Compare
3b2b1e2
to
6a9faa0
Compare
@eteq Do you know if |
6a9faa0
to
6826988
Compare
@nmearl - as I mentioned yesterday out-of-band, the canonical place to look is the implementation for FITS-WCS. That's astropy/astropy#7325 + astropy/astropy#7326 . There it turns out the pixel coordinates are not |
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.
Note this still needs tests that check explicitly if the output is a Quantity. Also it doesn't look like world_to_pixel
is tested? (although maybe it was awaiting an answer to the question of what that should return, which I pointed out above)
.eggs/README.txt
Outdated
@@ -0,0 +1,6 @@ | |||
This directory contains eggs that were downloaded by setuptools to build, test, and run plug-ins. |
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 file should not be included. In 9448fe2 I added .eggs
to gitignore, but in the meantime this should not be checked in in this PR.
6826988
to
33c1178
Compare
@eteq Tests have been added (it tests |
LGTM now - thanks @nmearl ! |
Pin MPL to 2.1 for now to work around glue bug
From a conversation with @eteq,
pixel_to_world
should return aQuantity
object instead of theQuantity
being created when thespectral_axis
is evaluated in theSpectrum1D
object.