Skip to content

Commit

Permalink
Fixed SUBSTRIP96 flux drop
Browse files Browse the repository at this point in the history
  • Loading branch information
hover2pi committed Nov 26, 2024
1 parent 415de86 commit 00669a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jwst/extract_1d/soss_extract/soss_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,8 @@ def run_extract1d(input_model, spectrace_ref_name, wavemap_ref_name,
# Pre-compute the weights for box extraction (used in modeling and extraction)
args = (ref_files, transform, subarray, scidata_bkg.shape)
box_weights, wavelengths = compute_box_weights(*args, width=soss_kwargs['width'])
if subarray == 'SUBSTRIP96':

Check warning on line 1205 in jwst/extract_1d/soss_extract/soss_extract.py

View check run for this annotation

Codecov / codecov/patch

jwst/extract_1d/soss_extract/soss_extract.py#L1205

Added line #L1205 was not covered by tests
box_weights['Order 2'] = np.ones((96, 2048))

# Model the traces based on optics filter configuration (CLEAR or F277W)
if soss_filter == 'CLEAR' and generate_model:
Expand Down

0 comments on commit 00669a7

Please sign in to comment.