Skip to content

Commit

Permalink
DEBUG: unit test 6
Browse files Browse the repository at this point in the history
  • Loading branch information
mcara committed Oct 15, 2024
1 parent d45e6e2 commit 637e5af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drizzle/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def test_estimate_pixel_scale_ratio():
assert abs(phi3 - -72.08836985651423) < 1e-14
assert abs(phi4 - -72.08837650625458) < 1e-14
pscale1 = _estimate_pixel_scale(w, refpix)
assert abs(pscale1 - 1.285368350331663e-07) < 1.e-13
assert abs(pscale1 - 1.285368350331663e-07) < 1.e-21

refpix = np.array([512., 512.])
l1, phi1 = w.pixel_to_world_values(*(refpix - 0.5))
Expand All @@ -162,7 +162,7 @@ def test_estimate_pixel_scale_ratio():
assert abs(phi3 - -72.08349683404813) < 1e-13
assert abs(phi4 - -72.08350348350724) < 1e-13
pscale2 = _estimate_pixel_scale(w, refpix)
assert abs(pscale2 - 1.285368361004753e-07) < 1.e-13
assert abs(pscale2 - 1.285368361004753e-07) < 1.e-21

pscale = estimate_pixel_scale_ratio(w, w, w.wcs.crpix, (0, 0))

Expand Down

0 comments on commit 637e5af

Please sign in to comment.