From 364e64e223c37b9f49114db686d0a3e8c056645b Mon Sep 17 00:00:00 2001 From: Brett Date: Fri, 22 Nov 2024 16:01:23 -0500 Subject: [PATCH 1/3] remove invalid cal_step --- jwst/refpix/irs2_subtract_reference.py | 1 - 1 file changed, 1 deletion(-) diff --git a/jwst/refpix/irs2_subtract_reference.py b/jwst/refpix/irs2_subtract_reference.py index b05261538e..8b7730bb0b 100644 --- a/jwst/refpix/irs2_subtract_reference.py +++ b/jwst/refpix/irs2_subtract_reference.py @@ -78,7 +78,6 @@ def correct_model(output_model, irs2_model, scipix_n_default=16, refpix_r_defaul # of the input model will be copied to output at the end of the step. data = output_model.data.copy() pixeldq = output_model.pixeldq.copy() - output_model.meta.cal_step.refpix = 'not specified yet' # Load the reference file data. # The reference file data are complex, but they're stored as float, with From b5d12cedc80064fbf044107214f2ed1a19b18fc0 Mon Sep 17 00:00:00 2001 From: Brett Date: Fri, 22 Nov 2024 16:04:14 -0500 Subject: [PATCH 2/3] change cal_step SKIP to SKIPPED --- jwst/residual_fringe/tests/test_configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jwst/residual_fringe/tests/test_configuration.py b/jwst/residual_fringe/tests/test_configuration.py index d0253333bb..33ab11b589 100644 --- a/jwst/residual_fringe/tests/test_configuration.py +++ b/jwst/residual_fringe/tests/test_configuration.py @@ -44,7 +44,7 @@ def test_call_residual_fringe(tmp_cwd, miri_image): def test_fringe_flat_applied(tmp_cwd, miri_image): - miri_image.meta.cal_step.fringe = 'SKIP' + miri_image.meta.cal_step.fringe = 'SKIPPED' residual_fringe_reference_file = None regions_reference_file = None save_intermediate_results = False From 208e7ce61dcc8a64133cf3d534681b6f08ae53d3 Mon Sep 17 00:00:00 2001 From: Brett Date: Fri, 22 Nov 2024 16:04:59 -0500 Subject: [PATCH 3/3] turn stdatamodels validationwarnings into errors in ci --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 5c487d65b1..26d333cffd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -214,6 +214,7 @@ addopts = [ ] filterwarnings = [ "error::ResourceWarning", + "error::stdatamodels.validate.ValidationWarning", "ignore:Models in math_functions:astropy.utils.exceptions.AstropyUserWarning", ]