From 90ba645e6c57d809222fff75909cf71be3e7971c Mon Sep 17 00:00:00 2001 From: Mihai Cara Date: Mon, 21 Oct 2024 16:41:01 -0400 Subject: [PATCH] fix nirspec_fs_spec3 file names --- jwst/outlier_detection/utils.py | 1 - jwst/regtest/test_nirspec_fs_spec3.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/jwst/outlier_detection/utils.py b/jwst/outlier_detection/utils.py index e137dc3251..ac0d2b6192 100644 --- a/jwst/outlier_detection/utils.py +++ b/jwst/outlier_detection/utils.py @@ -161,7 +161,6 @@ def median_without_resampling(input_models, median_model.err = median_err _fileio.save_median(median_model, make_output_path) - if return_error: return median_data, median_wcs, median_err else: diff --git a/jwst/regtest/test_nirspec_fs_spec3.py b/jwst/regtest/test_nirspec_fs_spec3.py index 4fd2d62cf5..997b121961 100644 --- a/jwst/regtest/test_nirspec_fs_spec3.py +++ b/jwst/regtest/test_nirspec_fs_spec3.py @@ -36,7 +36,7 @@ def test_nirspec_fs_spec3(run_pipeline, rtdata_module, fitsdiff_default_kwargs, rtdata = rtdata_module if suffix == "median": - output = f"jw01309022001_04102_00002_nrs2_{slit_name}_{suffix}.fits" + output = f"jw01309022001_04102_00001_nrs2_{slit_name}_{suffix}.fits" # also ensure drizzled and blot models were created with the correct names assert os.path.isfile(output.replace("median", "outlier_s2d")) assert os.path.isfile(output.replace("median", "blot"))