Skip to content

Commit

Permalink
Fix deblender logging
Browse files Browse the repository at this point in the history
  • Loading branch information
natelust committed May 16, 2019
1 parent cc25cb0 commit edbdd31
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 @@ -536,13 +536,14 @@ def write(self, dataRef, flux_sources, template_sources=None):
if flux_sources is not None:
assert not self.config.simultaneous or self.config.multiBandDeblend.conserveFlux
dataRef.put(flux_sources, self.config.coaddName + "Coadd_deblendedFlux")
self.log.info("Wrote %d sources: %s" % (len(flux_sources), dataRef.dataId))
# Only the multiband deblender has the option to output the
# template model catalog, which can optionally be used
# in MeasureMergedCoaddSources
if template_sources is not None:
assert self.config.multiBandDeblend.saveTemplates
dataRef.put(template_sources, self.config.coaddName + "Coadd_deblendedModel")
self.log.info("Wrote %d sources: %s" % (len(flux_sources), dataRef.dataId))
self.log.info("Wrote %d sources: %s" % (len(template_sources), dataRef.dataId))

def writeMetadata(self, dataRefList):
"""Write the metadata produced from processing the data.
Expand Down

0 comments on commit edbdd31

Please sign in to comment.