Skip to content

Commit

Permalink
Merge branch 'tickets/DM-27168' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
czwa committed Nov 12, 2020
2 parents e4adf51 + cdd9f35 commit bdec61e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/lsst/pipe/tasks/multiBandUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,12 @@ def getInputSchema(task, butler=None, schema=None):
return schema


# TODO: DM-27170 should remove this function.
def getShortFilterName(name):
"""Given a longer, camera-specific filter name (e.g. "HSC-I") return its shorthand name ("i").
"""
# I'm not sure if this is the way this is supposed to be implemented, but it seems to work,
# and its the only way I could get it to work.
try:
return afwImage.Filter(name).getFilterProperty().getName()
return afwImage.Filter(name).getCanonicalName()
except pexExceptions.NotFoundError:
# No mapping could be found, try proceeding with given name
return name
Expand Down

0 comments on commit bdec61e

Please sign in to comment.