Skip to content

Commit 9bb48c3

Browse files
JP-2928: Update regression test data for NIRSpec lamps (#8898)
2 parents 1df2e6b + 1aeb340 commit 9bb48c3

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

jwst/regtest/test_nirspec_lamp_fs_spec2.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@
1010

1111
@pytest.fixture(scope="module")
1212
def run_pipeline(rtdata_module):
13-
"""Run the calwebb_spec2 pipeline on a NIRSpec lamp exposure."""
13+
"""Run the calwebb_spec2 pipeline on a NIRSpec lamp exposure.
14+
15+
Input data has EXP_TYPE = NRS_AUTOWAVE, OPMODE = FIXEDSLIT
16+
"""
1417
rtdata = rtdata_module
1518

1619
# Get the input exposure
17-
rtdata.get_data('nirspec/lamp/jw84600010001_02101_00004_nrs2_rate.fits')
20+
rtdata.get_data('nirspec/lamp/jw01125001001_03104_00010_nrs2_rate.fits')
1821

1922
# Run the calwebb_spec2 pipeline; save results from intermediate steps
2023
args = ["jwst.pipeline.Spec2Pipeline", rtdata.input,
@@ -30,8 +33,7 @@ def run_pipeline(rtdata_module):
3033
@pytest.mark.parametrize("suffix", [
3134
"assign_wcs", "extract_2d", "flat_field", "cal", "s2d", "x1d"])
3235
def test_nirspec_lamp_fs_spec2(run_pipeline, fitsdiff_default_kwargs, suffix):
33-
"""Regression test of the calwebb_spec2 pipeline on a
34-
NIRSpec lamp exposure in Fixed-Slit mode."""
36+
"""Regression test for calwebb_spec2 on NIRSpec lamp in Fixed-Slit mode."""
3537

3638
# Run the pipeline and retrieve outputs
3739
rtdata = run_pipeline

jwst/regtest/test_nirspec_lamp_ifu_spec2.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@
1010

1111
@pytest.fixture(scope="module")
1212
def run_pipeline(rtdata_module):
13-
"""Run the calwebb_spec2 pipeline on a NIRSpec lamp exposure."""
13+
"""Run the calwebb_spec2 pipeline on a NIRSpec lamp exposure.
14+
15+
Input data has EXP_TYPE = NRS_AUTOWAVE, OPMODE = IFU
16+
"""
1417
rtdata = rtdata_module
1518

1619
# Get the input exposure
17-
rtdata.get_data('nirspec/lamp/jw00626030001_02103_00005_nrs1_rate.fits')
20+
rtdata.get_data('nirspec/lamp/jw01125006001_03104_00003_nrs1_rate.fits')
1821

1922
# Run the calwebb_spec2 pipeline; save results from intermediate steps
2023
args = ["jwst.pipeline.Spec2Pipeline", rtdata.input,
@@ -30,8 +33,7 @@ def run_pipeline(rtdata_module):
3033
@pytest.mark.parametrize("suffix", [
3134
"assign_wcs", "msa_flagging", "flat_field", "cal", "s3d", "x1d"])
3235
def test_nirspec_lamp_ifu_spec2(run_pipeline, fitsdiff_default_kwargs, suffix):
33-
"""Regression test of the calwebb_spec2 pipeline on a
34-
NIRSpec lamp exposure in IFU mode."""
36+
"""Regression test for calwebb_spec2 on NIRSpec lamp in IFU mode."""
3537

3638
# Run the pipeline and retrieve outputs
3739
rtdata = run_pipeline

0 commit comments

Comments
 (0)