Skip to content

Commit

Permalink
Changes to test_nirspec.py not committed previously?
Browse files Browse the repository at this point in the history
  • Loading branch information
Witchblade101 committed Jun 7, 2022
1 parent a8a79b1 commit a854338
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pysiaf/tests/test_nirspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ def test_nirspec_aperture_transforms(verbose=False, siaf=None):
siaf = copy.deepcopy(siaf)

labels = ['X', 'Y']
threshold = 0.2
#threshold = 0.2
threshold = 0.3

from_frame = 'sci'
to_frames = 'det gwa idl tel'.split()
Expand All @@ -176,7 +177,7 @@ def test_nirspec_aperture_transforms(verbose=False, siaf=None):
rx0 = getattr(gwa_aperture, 'XSciRef')
ry0 = getattr(gwa_aperture, 'YSciRef')
aperture.tilt = (ry0 - 0.002, rx0 - 0.01)

# test transformations
if verbose:
print('testing {} {} Tilt={}'.format(siaf.instrument, aper_name, aperture.tilt))
Expand Down Expand Up @@ -216,7 +217,8 @@ def test_nirspec_slit_transformations(verbose=False, siaf=None):
siaf = copy.deepcopy(siaf)

threshold = 0.010 # arc-seconds
pixel_threshold = 10 * threshold
#pixel_threshold = 10 * threshold
pixel_threshold = 0.3

labels = ['X', 'Y']
from_frame = 'sci'
Expand Down Expand Up @@ -313,4 +315,4 @@ def test_sci_det_consistency(siaf=None):
assert_allclose(nrs2_fp4mimf.det_to_sci(2048, 2048), (1, 1), atol=absolute_tolerance)
assert_allclose(nrs2_full.det_to_sci(2048, 2048), (1, 1), atol=absolute_tolerance)
# assert nrs2_fp4mimf.det_to_sci(2048, 2048) == (1, 1)
# assert nrs2_full.det_to_sci(2048, 2048) == (1, 1)
# assert nrs2_full.det_to_sci(2048, 2048) == (1, 1)

0 comments on commit a854338

Please sign in to comment.