From e9d162b3085ade67405755612deda753e04e70ca Mon Sep 17 00:00:00 2001 From: Mihai Cara Date: Mon, 15 Apr 2024 18:14:53 -0400 Subject: [PATCH] Fix failing test due to astropy.wcs fix for distortion look-up table bug --- stwcs/tests/test_updatewcs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stwcs/tests/test_updatewcs.py b/stwcs/tests/test_updatewcs.py index c6bc51b..34d5ca9 100644 --- a/stwcs/tests/test_updatewcs.py +++ b/stwcs/tests/test_updatewcs.py @@ -71,7 +71,8 @@ def test_simple_sci1(self): """ px1 = np.array([self.w1.wcs.crpix]) rd1 = np.array([self.w1.wcs.crval]) - assert(((self.w1.all_pix2world(px1, 1) - rd1) < 5E-7).all()) + assert(((self.w1.wcs_pix2world(px1, 1) - rd1) < 1E-11).all()) + assert(((self.w1.all_pix2world(px1, 1) - rd1) < 6E-7).all()) def test_simple_sci2(self): """ @@ -79,6 +80,7 @@ def test_simple_sci2(self): """ px4 = np.array([self.w4.wcs.crpix]) rd4 = np.array([self.w4.wcs.crval]) + assert(((self.w4.wcs_pix2world(px4, 1) - rd4) < 1E-11).all()) assert(((self.w4.all_pix2world(px4, 1) - rd4) < 2E-6).all()) def test_pipeline_sci1(self):