Skip to content

Commit

Permalink
Update regression test data for NIRSpec lamps
Browse files Browse the repository at this point in the history
  • Loading branch information
melanieclarke committed Oct 17, 2024
1 parent ae78da2 commit bc3d035
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions jwst/regtest/test_nirspec_lamp_fs_spec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@

@pytest.fixture(scope="module")
def run_pipeline(rtdata_module):
"""Run the calwebb_spec2 pipeline on a NIRSpec lamp exposure."""
"""Run the calwebb_spec2 pipeline on a NIRSpec lamp exposure.
Input data has EXP_TYPE = NRS_AUTOWAVE, OPMODE = FIXEDSLIT
"""
rtdata = rtdata_module

# Get the input exposure
rtdata.get_data('nirspec/lamp/jw84600010001_02101_00004_nrs2_rate.fits')
rtdata.get_data('nirspec/lamp/jw01125001001_03104_00010_nrs2_rate.fits')

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

# Run the pipeline and retrieve outputs
rtdata = run_pipeline
Expand Down
10 changes: 6 additions & 4 deletions jwst/regtest/test_nirspec_lamp_ifu_spec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@

@pytest.fixture(scope="module")
def run_pipeline(rtdata_module):
"""Run the calwebb_spec2 pipeline on a NIRSpec lamp exposure."""
"""Run the calwebb_spec2 pipeline on a NIRSpec lamp exposure.
Input data has EXP_TYPE = NRS_AUTOWAVE, OPMODE = IFU
"""
rtdata = rtdata_module

# Get the input exposure
rtdata.get_data('nirspec/lamp/jw00626030001_02103_00005_nrs1_rate.fits')
rtdata.get_data('nirspec/lamp/jw01125006001_03104_00003_nrs1_rate.fits')

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

# Run the pipeline and retrieve outputs
rtdata = run_pipeline
Expand Down

0 comments on commit bc3d035

Please sign in to comment.