Skip to content

Commit

Permalink
make F2 lyot_stop() descriptor return None instead of "Undefined"
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-simpson committed Apr 3, 2024
1 parent 8f2f902 commit bee8e73
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions gemini_instruments/f2/adclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,12 +566,11 @@ def lyot_stop(self):
-------
str
LYOT filter name, or None
"""
lyot = self.phu.get('LYOT', None)
if lyot:
return lyot
return self.phu.get('LYOTPOS', None)
lyot = self.phu.get('LYOT', self.phu.get('LYOTPOS', None))
if lyot == "Undefined":
lyot = None
return lyot

@returns_list
@astro_data_descriptor
Expand Down

0 comments on commit bee8e73

Please sign in to comment.