Skip to content

Commit

Permalink
LSK edits
Browse files Browse the repository at this point in the history
  • Loading branch information
leeskelvin committed Nov 20, 2024
1 parent 9efb843 commit bfde0a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/lsst/pipe/tasks/skyCorrection.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ def _restoreOriginalBackgroundRefineMask(self, calExps, calBkgs):
return calExps, skyCorrBases

def _undoInitialBackground(self, calExps, calBkgs):
"""Restores the full focal-plane background to a visit.
Runs after _subtractSkyFrame() if doBgModel1=False.
"""Undo the initial background subtraction (bgModel1) after sky frame
subtraction.
Parameters
----------
Expand All @@ -419,7 +419,7 @@ def _undoInitialBackground(self, calExps, calBkgs):
for calExp, calBkg in zip(calExps, calBkgs):
image = calExp.getMaskedImage()

# Restore full focal-plane background in calexp; remove from BGList
# Remove bgModel1 from the background list; restore in the image
skyCorrBase = calBkg[-2][0].getImageF()
image += skyCorrBase
calBkg._backgrounds.pop(-2)
Expand Down

0 comments on commit bfde0a0

Please sign in to comment.