Skip to content

Commit

Permalink
Update wavecorr test
Browse files Browse the repository at this point in the history
  • Loading branch information
melanieclarke committed Jun 10, 2024
1 parent a2946ce commit 3f723b3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jwst/wavecorr/tests/test_wavecorr.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,9 @@ def test_mos_slit_status():
im_src.slits[0].source_type = 'EXTENDED'
im_wave = WavecorrStep.call(im_src)

# check that the step is recorded as completed
assert im_wave.meta.cal_step.wavecorr == 'COMPLETE'
# check that the step is recorded as skipped,
# since no slits were corrected
assert im_wave.meta.cal_step.wavecorr == 'SKIPPED'

# check that the step is listed as skipped for extended mos sources
assert im_wave.slits[0].meta.cal_step.wavecorr == 'SKIPPED'
Expand Down Expand Up @@ -260,7 +261,7 @@ def test_wavecorr_fs():
corrected_wavelength = wavecorr.compute_wavelength(slit.meta.wcs, x, y)
assert_allclose(slit.wavelength, corrected_wavelength)

# test the roundtripping on the wavelength correction transform
# test the round-tripping on the wavelength correction transform
ref_name = result.meta.ref_file.wavecorr.name
freference = datamodels.WaveCorrModel(WavecorrStep.reference_uri_to_cache_path(ref_name, im.crds_observatory))

Expand Down

0 comments on commit 3f723b3

Please sign in to comment.