Skip to content

Commit

Permalink
Switch from deprecated filterLabel accessors.
Browse files Browse the repository at this point in the history
  • Loading branch information
czwa committed Jun 9, 2022
1 parent 85ad0c0 commit f7beb9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions python/lsst/cp/pipe/cpCombine.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ def run(self, inputExpHandles, inputScales=None, inputDims=None):
combinedExp.setDetector(inputDetector)

# Do we need to set a filter?
filterLabel = inputExpHandles[0].get(component="filterLabel")
self.setFilterLabel(combinedExp, filterLabel)
filterLabel = inputExpHandles[0].get(component="filter")
self.setFilter(combinedExp, filterLabel)

# Return
return pipeBase.Struct(
Expand Down Expand Up @@ -645,4 +645,4 @@ def setFilterLabel(exp, filterLabel):
Filter to assign.
"""
if filterLabel:
exp.setFilterLabel(filterLabel)
exp.setFilter(filterLabel)
2 changes: 1 addition & 1 deletion python/lsst/cp/pipe/cpSkyTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def run(self, inputBkgs, inputExpHandles):
"""
skyCalib = self.sky.averageBackgrounds(inputBkgs)
skyCalib.setDetector(inputExpHandles[0].get(component='detector'))
skyCalib.setFilterLabel(inputExpHandles[0].get(component='filterLabel'))
skyCalib.setFilter(inputExpHandles[0].get(component='filter'))

CalibCombineTask().combineHeaders(inputExpHandles, skyCalib, calibType='SKY')

Expand Down

0 comments on commit f7beb9a

Please sign in to comment.