Skip to content

Commit

Permalink
DetectCoaddSourcesTask: record variance scaling factor
Browse files Browse the repository at this point in the history
Without this value, it's difficult to make simulations with the same noise
properties as our coadds.
  • Loading branch information
PaulPrice committed Nov 1, 2017
1 parent 366a661 commit dcf5c4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lsst/pipe/tasks/multiBand.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ def runDetection(self, exposure, idFactory):
- backgrounds: list of backgrounds
"""
if self.config.doScaleVariance:
scaleVariance(exposure.getMaskedImage(), self.config.mask, log=self.log)
varScale = scaleVariance(exposure.getMaskedImage(), self.config.mask, log=self.log)
self.metadata.add("variance_scale", varScale)
backgrounds = afwMath.BackgroundList()
if self.config.doInsertFakes:
self.insertFakes.run(exposure, background=backgrounds)
Expand Down

0 comments on commit dcf5c4d

Please sign in to comment.