Skip to content

Commit

Permalink
Use source_name to determine if FS slit comes from MSA file
Browse files Browse the repository at this point in the history
  • Loading branch information
melanieclarke committed Jun 10, 2024
1 parent fe37e37 commit 3165264
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jwst/wavecorr/wavecorr.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,10 @@ def _is_msa_fixed_slit(slit):
A slit object.
"""
# Fixed slits defined via MSA files in MOS/FS combination
# processing will have a non-empty shutter state
if (not hasattr(slit, 'shutter_state')
or slit.shutter_state is None
or slit.shutter_state == ""):
# processing will have a non-empty source name
if (not hasattr(slit, 'source_name')
or slit.source_name is None
or slit.source_name == ""):
return False
else:
return True
Expand Down

0 comments on commit 3165264

Please sign in to comment.