Closed e-koch closed 1 month ago
From https://github.com/astropy/astropy/issues/17096: astropy 6.1.4 introduced a bug here due to our use of
u.deg.is_equivalent(pa)
when pa is a Quantity and pa=0 * u.deg. The immediate fix is to compare to the unit, not the quantity. (See traceback from @olebole here https://github.com/astropy/astropy/issues/17096#issue-2557500683).
pa
Quantity
pa=0 * u.deg
This PR also fixes our use of default_unit in Beam and Beams
default_unit
Beam
Beams
@keflavich ready to merge after tests pass.
@keflavich Looks like spectral-cube's test failures are also related to this PR.
From https://github.com/astropy/astropy/issues/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 https://github.com/astropy/astropy/issues/17096#issue-2557500683).