From 016dc6acedb72cf8a5d1ace98b0e880848e4d335 Mon Sep 17 00:00:00 2001 From: Nadia Dencheva Date: Tue, 14 Nov 2023 17:00:15 -0500 Subject: [PATCH] do not recompute s_region --- jwst/resample/resample_spec_step.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jwst/resample/resample_spec_step.py b/jwst/resample/resample_spec_step.py index 921edaee1c..15445297dc 100755 --- a/jwst/resample/resample_spec_step.py +++ b/jwst/resample/resample_spec_step.py @@ -6,7 +6,7 @@ from jwst.datamodels import ModelContainer from . import resample_spec, ResampleStep from ..exp_to_source import multislit_to_container -from ..assign_wcs.util import update_s_region_spectral + # Force use of all DQ flagged data except for DO_NOT_USE and NON_SCIENCE GOOD_BITS = '~DO_NOT_USE+NON_SCIENCE' @@ -137,7 +137,6 @@ def _process_multislit(self, input_models): for model in drizzled_models: self.update_slit_metadata(model) - update_s_region_spectral(model) result.slits.append(model) result.meta.cal_step.resample = "COMPLETE" @@ -176,7 +175,6 @@ def _process_slit(self, input_models): result.meta.resample.pixel_scale_ratio = self.pixel_scale_ratio result.meta.resample.pixfrac = self.pixfrac self.update_slit_metadata(result) - update_s_region_spectral(result) return result