Skip to content

Commit

Permalink
Merge pull request #67 from lsst/tickets/DM-6580
Browse files Browse the repository at this point in the history
  • Loading branch information
djreiss committed Jul 26, 2016
2 parents 423b56c + b144d67 commit 221e009
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/lsst/pipe/tasks/imageDifference.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def run(self, sensorRef, templateIdList=None):
# If doSubtract is False, then subtractedExposure was fetched from disk (above), thus it may have
# already been decorrelated. Thus, we do not do decorrelation if doSubtract is False.
if self.config.doDecorrelation and self.config.doSubtract:
decorrResult = self.decorrelate.run(templateExposure, exposure,
decorrResult = self.decorrelate.run(exposure, templateExposure,
subtractedExposure,
subtractRes.psfMatchingKernel)
subtractedExposure = decorrResult.correctedExposure
Expand Down Expand Up @@ -561,7 +561,11 @@ def run(self, sensorRef, templateIdList=None):
if not self.config.doDipoleFitting:
self.measurement.run(diaSources, subtractedExposure)
else:
self.measurement.run(diaSources, subtractedExposure, exposure, templateExposure)
if self.config.doSubtract:
self.measurement.run(diaSources, subtractedExposure, exposure,
subtractRes.matchedExposure)
else:
self.measurement.run(diaSources, subtractedExposure, exposure)

# Match with the calexp sources if possible
if self.config.doMatchSources:
Expand Down

0 comments on commit 221e009

Please sign in to comment.