Skip to content

Commit

Permalink
use 'none' as the physical_filter value instead of 'NONE'
Browse files Browse the repository at this point in the history
  • Loading branch information
jchiang87 committed Dec 5, 2023
1 parent 13ab1e3 commit 0fe264d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/obs/lsst/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def addFilter(filter_dict, band, physical_filter):
# For this case, all filters are returned to the carousel and the
# auto-changer partially occludes the focal plane. See Tony
# Johnson's comment at https://jira.lsstcorp.org/browse/DM-41675.
FilterDefinition(physical_filter="NONE", band="white",
FilterDefinition(physical_filter="none", band="white",
alias={"no_filter", "open"}),
)

Expand Down
3 changes: 3 additions & 0 deletions python/lsst/obs/lsst/translators/lsst.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,9 @@ def to_physical_filter(self):
if not joined:
joined = "unknown"

# Replace instances of "NONE" with "none".
joined = joined.replace("NONE", "none")

return joined

@cache_translation
Expand Down

0 comments on commit 0fe264d

Please sign in to comment.