Skip to content

Commit

Permalink
Improve log messages in forced photometry
Browse files Browse the repository at this point in the history
Printing out the number of sources isn't as useful as printing
the data ID, especially when we already have other log messages
that print the same number.
  • Loading branch information
TallJimbo committed Dec 16, 2014
1 parent 814036b commit da5a18d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions python/lsst/pipe/tasks/forcedPhotCoadd.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def attachFootprints(self, dataRef, sources, references, exposure, refWcs):
"""
if self.config.footprintDatasetName is None:
return ForcedPhotImageTask.attachFootprints(dataRef, sources, references, exposure, refWcs)
self.log.info("Loading deblended footprints for sources from %s, %s" %
(self.config.footprintDatasetName, dataRef.dataId))
fpCat = dataRef.get("%sCoadd_%s" % (self.config.coaddName, self.config.footprintDatasetName),
immediate=True)
for refRecord, srcRecord in zip(references, sources):
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/pipe/tasks/forcedPhotImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def run(self, dataRef):
exposure = self.getExposure(dataRef)
if exposure:
references = list(self.fetchReferences(dataRef, exposure))
self.log.info("Performing forced measurement on %d sources" % len(references))
self.log.info("Performing forced measurement on %s" % dataRef.dataId)
sources = self.generateSources(dataRef, references)
self.attachFootprints(dataRef, sources, references=references, exposure=exposure, refWcs=refWcs)
self.measurement.run(exposure, sources, references=references, refWcs=refWcs)
Expand Down

0 comments on commit da5a18d

Please sign in to comment.