Skip to content

Commit

Permalink
do not recompute s_region
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadia Dencheva committed Nov 14, 2023
1 parent 9dfaa37 commit 016dc6a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions jwst/resample/resample_spec_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 016dc6a

Please sign in to comment.