Skip to content

Commit

Permalink
Force lower case when comparing empty with empty filter/grating
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Feb 6, 2020
1 parent 9ad5b0d commit 515cc4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/obs/lsst/translators/latiss.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def to_physical_filter(self):
physical_filter = self._header["FILTER"]
self._used_these_cards("FILTER")

if physical_filter.startswith("empty_"):
if physical_filter.lower().startswith("empty"):
physical_filter = "EMPTY"
else:
# Be explicit about having no knowledge of the filter
Expand All @@ -468,7 +468,7 @@ def to_physical_filter(self):
grating = self._header["GRATING"]
self._used_these_cards("GRATING")

if not grating or grating.startswith("empty_"):
if not grating or grating.lower().startswith("empty"):
grating = "EMPTY"
else:
# Be explicit about having no knowledge of the grating
Expand Down

0 comments on commit 515cc4c

Please sign in to comment.