-
Notifications
You must be signed in to change notification settings - Fork 21
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
Astropy 6.1.4 #17096 regression fix #128
Astropy 6.1.4 #17096 regression fix #128
Conversation
This PR also fixes our use of |
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.
Functionally, this looks good - thanks! I'm not sure the function name is right though.
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.
thanks! Updated to _with_default_unit
as suggested. Should be good to merge now.
@keflavich ready to merge after tests pass. |
@keflavich Looks like spectral-cube's test failures are also related to this PR. |
From astropy/astropy#17096: astropy 6.1.4 introduced a bug here due to our use of
when
pa
is aQuantity
andpa=0 * u.deg
. The immediate fix is to compare to the unit, not the quantity. (See traceback from @olebole here astropy/astropy#17096 (comment)).