Skip to content

Commit

Permalink
logic error wrt padding
Browse files Browse the repository at this point in the history
  • Loading branch information
tapastro committed Sep 10, 2024
1 parent 3b5a777 commit b26075c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jwst/extract_1d/soss_extract/soss_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,13 @@ def get_trace_1d(ref_files, order):
pastasoss_ref = ref_files['pastasoss']
if hasattr(pastasoss_ref.traces[0], "padding"):
pad = pastasoss_ref.traces[0].padding
if pad > 0:
padding = True
else:
padding = False
else:
pad = 0
padding = False
if pad > 0:
padding = True
(wavemap_o1, wavemap_o2), (spectrace_o1, spectrace_o2) = \
get_soss_wavemaps(pastasoss_ref, pwcpos=ref_files['pwcpos'], subarray=ref_files['subarray'],
padding=padding, padsize=pad, spectraces=True)
Expand Down

0 comments on commit b26075c

Please sign in to comment.