Skip to content

Commit

Permalink
loosen limit for WCS stability from 1e-12 arcsec to 1e-10 arcsec
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-simpson committed Aug 12, 2020
1 parent 2e8069b commit ed463d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions geminidr/core/tests/test_wcs_creation_and_stability.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def test_gmos_wcs_stability(raw_ad_path, do_prepare, do_overscan_correct, tile_a
if do_prepare:
p.prepare()
c = SkyCoord(*raw_ad[ref_index].wcs(x, y), unit="deg")
assert c0.separation(c) < 1e-12 * u.arcsec
assert c0.separation(c) < 1e-10 * u.arcsec

# Test that slicing the NDData keeps the WCS valid
if do_overscan_correct:
Expand All @@ -81,7 +81,7 @@ def test_gmos_wcs_stability(raw_ad_path, do_prepare, do_overscan_correct, tile_a
x -= xshift
y -= yshift
c = SkyCoord(*raw_ad[ref_index].wcs(x, y), unit="deg")
assert c0.separation(c) < 1e-12 * u.arcsec
assert c0.separation(c) < 1e-10 * u.arcsec

# Test that tiling doesn't affect the reference extension's WCS
new_ref_index = 0 if (tile_all or raw_ad.detector_roi_setting() == 'Central Stamp') else 1
Expand All @@ -95,7 +95,7 @@ def test_gmos_wcs_stability(raw_ad_path, do_prepare, do_overscan_correct, tile_a
if tile_all and raw_ad.detector_roi_setting() != 'Central Stamp':
x += chip_gaps // raw_ad.detector_x_bin()
c = SkyCoord(*ad[new_ref_index].wcs(x, y), unit="deg")
assert c0.separation(c) < 1e-12 * u.arcsec
assert c0.separation(c) < 1e-10 * u.arcsec

# Now write the file to disk and read it back in and check WCS stability
ad.write(TEMPFILE, overwrite=True)
Expand Down

0 comments on commit ed463d1

Please sign in to comment.