Skip to content

Commit

Permalink
return None rather than raise exception if headers are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
phirstgemini committed Jul 20, 2023
1 parent 1220c4d commit fd289c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gemini_instruments/gnirs/adclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ def disperser(self, stripID=False, pretty=False):

grating = self._grating(stripID=stripID, pretty=pretty)
prism = self._prism(stripID=stripID, pretty=pretty)
if prism is None or grating is None:
return None
if prism.startswith('MIR'):
return grating

Expand Down

0 comments on commit fd289c9

Please sign in to comment.