Skip to content

Commit

Permalink
Merge pull request #197 from mcara/fix-failing-test-astropy-dlt-fix
Browse files Browse the repository at this point in the history
Fix failing test due to astropy.wcs fix for distortion look-up table bug
  • Loading branch information
nden committed Apr 16, 2024
2 parents 2971154 + e9d162b commit d0ba69c
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 d0ba69c

Please sign in to comment.