Skip to content

Commit

Permalink
JP-3660: extract1d _coalesce_bounds fix (spacetelescope#8586)
Browse files Browse the repository at this point in the history
Co-authored-by: Timothy Brandt <[email protected]>
Co-authored-by: Howard Bushouse <[email protected]>
  • Loading branch information
3 people authored Jun 24, 2024
1 parent 95c8eb5 commit c79c4ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ extract_1d

- Fix error in application of aperture correction to variance arrays. [#8530]

- Fix error in ``_coalesce_bounds`` that returned incorrect spectral or background
extraction region when one set of pixel limits is entirely contained within
another [#8586]

- Removed a check for the primary slit for NIRSpec fixed slit mode:
all slits containing point sources are now handled consistently,
whether they are marked primary or not. [#8467]
Expand Down
2 changes: 1 addition & 1 deletion jwst/extract_1d/extract1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ def _coalesce_bounds(segments):
pint = cint[-1]
interval = intervals.pop(0)
if interval[0] <= pint[1]:
pint[1] = interval[1]
pint[1] = max(interval[1], pint[1])
continue
cint.append(interval)

Expand Down

0 comments on commit c79c4ae

Please sign in to comment.