Skip to content

Commit

Permalink
Handle LR-IFU and HR-IFU
Browse files Browse the repository at this point in the history
  • Loading branch information
phirstgemini committed Jul 28, 2023
1 parent 8d51d0a commit 09f9880
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gemini_instruments/gnirs/adclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _type_spect(self):
slit = self.phu.get('SLIT', '').lower()
grat = self.phu.get('GRATING', '')
prism = self.phu.get('PRISM', '')
if slit == 'ifu':
if 'ifu' in slit:
tags.add('IFU')
elif ('arcsec' in slit or 'pin' in slit) and 'mm' in grat:
if 'MIR' in prism:
Expand Down Expand Up @@ -261,6 +261,10 @@ def focal_plane_mask(self, stripID=False, pretty=False):
fpm = slit
elif "XD" in decker:
fpm = "{}XD".format(slit)
elif "HR-IFU" in slit and "HR-IFU" in decker:
fpm = "HR-IFU"
elif "LR-IFU" in slit and "LR-IFU" in decker:
fpm = "LR-IFU"
elif "IFU" in slit and "IFU" in decker:
fpm = "IFU"
elif "Acq" in slit and "Acq" in decker:
Expand Down

0 comments on commit 09f9880

Please sign in to comment.