In the current Debian unstable environment (Astropy 7.1.0, wcslib 8.4, numpy 2.2.4, asdf-wcs-schemas 0.5.0) test_fitswcs_imaging of gwcs 0.25.2 fails:
def test_fitswcs_imaging(fits_wcs_imaging_simple):
"""Test simple FITS type imaging WCS."""
gwcs, astwcs = fits_wcs_imaging_simple
forward_transform = gwcs.forward_transform
crpix = forward_transform.crpix
crval = forward_transform.crval
ra, dec = gwcs(*crpix)
ast_ra, ast_dec = astwcs.wcs_pix2world(crpix[0], crpix[1], 1)
assert_allclose((ra, dec), crval)
if crval[1] in (90, -90):
> assert_allclose((ast_ra, ast_dec), crval)
E AssertionError:
E Not equal to tolerance rtol=1e-07, atol=0
E
E Mismatched elements: 1 / 2 (50%)
E Max absolute difference among violations: 180.
E Max relative difference among violations: 32.14285714
E ACTUAL: array([185.6, -90. ])
E DESIRED: array([ 5.6, -90. ])
gwcs/tests/test_wcs.py:1909: AssertionError
This is new test code that was introduced with #616.
In the current Debian unstable environment (Astropy 7.1.0, wcslib 8.4, numpy 2.2.4, asdf-wcs-schemas 0.5.0) test_fitswcs_imaging of gwcs 0.25.2 fails:
This is new test code that was introduced with #616.