Skip to content

Commit

Permalink
Fix failing test due to astropy.wcs fix for distortion look-up table bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mcara committed Apr 15, 2024
1 parent 2971154 commit e9d162b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stwcs/tests/test_updatewcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,16 @@ 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):
"""
A simple sanity check that CRPIX corresponds to CRVAL within wcs
"""
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):
Expand Down

0 comments on commit e9d162b

Please sign in to comment.