Skip to content

Commit

Permalink
Merge pull request #1707 from pypeit/hotfix_fors2
Browse files Browse the repository at this point in the history
HotFix: VLT/FORS2
  • Loading branch information
rcooke-ast authored Oct 21, 2023
2 parents 2b3a8d1 + 6770987 commit a600f27
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pypeit/spectrographs/vlt_fors.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,14 @@ def compound_meta(self, headarr, meta_key):
return binning
elif meta_key == 'decker':
mode = headarr[0]['HIERARCH ESO INS MODE']
if mode == 'LSS':
if mode in ['LSS', 'MOS']:
try: # Science
return headarr[0]['HIERARCH ESO INS SLIT NAME']
except KeyError: # Standard!
try:
return headarr[0]['HIERARCH ESO SEQ SPEC TARG']
except KeyError:
return None
elif mode == 'MOS':
return headarr[0]['HIERARCH ESO INS MOS CHECKSUM']
return headarr[0]['HIERARCH ESO INS MOS CHECKSUM']
elif mode == 'IMG':
# This is for the bias frames
return None
Expand Down Expand Up @@ -362,7 +360,7 @@ def config_independent_frames(self):
keywords that can be used to assign the frames to a configuration
group.
"""
return {'bias': 'detector', 'dark': 'detector', 'standard':['detector', 'dispangle', 'dispname']}
return {'bias': 'detector', 'dark': 'detector'}

def configuration_keys(self):
"""
Expand Down

0 comments on commit a600f27

Please sign in to comment.