From 316526443f5885e9b981dfd817f65057e03d1408 Mon Sep 17 00:00:00 2001 From: Melanie Clarke Date: Mon, 10 Jun 2024 13:11:11 -0400 Subject: [PATCH] Use source_name to determine if FS slit comes from MSA file --- jwst/wavecorr/wavecorr.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jwst/wavecorr/wavecorr.py b/jwst/wavecorr/wavecorr.py index df47cb6c75..d514355397 100644 --- a/jwst/wavecorr/wavecorr.py +++ b/jwst/wavecorr/wavecorr.py @@ -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