Skip to content

Commit

Permalink
Merge pull request #1848 from pypeit/fix_spatflex
Browse files Browse the repository at this point in the history
HOTFIX to SlitTraceBitMask
  • Loading branch information
debora-pe authored Sep 6, 2024
2 parents bd77c38 + 2739521 commit b6e5e6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doc/releases/1.16.1dev.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ Bug Fixes
- Fix error "ValueError: setting an array element with a sequence. The requested
array has an inhomogeneous shape after 1 dimensions..." occurring when unpacking
the SpecObj spectrum but having an attribute of the SpecObj object that is None.
- Fixed an hidden bug that was causing the spatial flexure to fail. The bug was in the
`SlitTraceBitMask` class, where the function `exclude_for_flexure()` was not returning
the 'BOXSLIT' flag.



Expand Down
2 changes: 1 addition & 1 deletion pypeit/slittrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def exclude_for_reducing(self):
def exclude_for_flexure(self):
# Ignore these flags when performing a flexure calculation
# Currently they are *all* of the flags..
return ['SHORTSLIT', 'USERIGNORE', 'BADWVCALIB', 'BADTILTCALIB', 'BADALIGNCALIB',
return ['SHORTSLIT', 'BOXSLIT', 'USERIGNORE', 'BADWVCALIB', 'BADTILTCALIB', 'BADALIGNCALIB',
'SKIPFLATCALIB', 'BADFLATCALIB', 'BADSKYSUB', 'BADEXTRACT']


Expand Down

0 comments on commit b6e5e6e

Please sign in to comment.