Skip to content

Commit

Permalink
Merge pull request #613 from lsst/tickets/DM-32827
Browse files Browse the repository at this point in the history
DM-32827: Explicitly apply operations to calexp.maskedImage.
  • Loading branch information
erykoff committed Dec 7, 2021
2 parents aca5567 + 633d7bb commit edd35a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/lsst/pipe/tasks/makeCoaddTempExp.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,9 +859,8 @@ def prepareCalibratedExposures(self, calExpList, backgroundList=None, skyCorrLis
for index, (calexp, background, skyCorr) in enumerate(zip(calExpList,
backgroundList,
skyCorrList)):
mi = calexp.maskedImage
if not self.config.bgSubtracted:
mi += background.getImage()
calexp.maskedImage += background.getImage()

if externalSkyWcsCatalog is not None or externalPhotoCalibCatalog is not None:
detectorId = calexp.getInfo().getDetector().getId()
Expand Down Expand Up @@ -915,7 +914,7 @@ def prepareCalibratedExposures(self, calExpList, backgroundList=None, skyCorrLis

# Apply skycorr
if self.config.doApplySkyCorr:
mi -= skyCorr.getImage()
calexp.maskedImage -= skyCorr.getImage()

indices.append(index)

Expand Down

0 comments on commit edd35a2

Please sign in to comment.