Skip to content

Commit

Permalink
Only print unmasked nan count if it is non-zero.
Browse files Browse the repository at this point in the history
  • Loading branch information
czwa committed Feb 19, 2019
1 parent 62d8060 commit afc1b13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lsst/ip/isr/isrTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,8 @@ def run(self, ccdExposure, camera=None, bias=None, linearizer=None, crosstalkSou

if self.config.doSetBadRegions:
badPixelCount, badPixelValue = isrFunctions.setBadRegions(ccdExposure)
self.log.info("Set %d BAD pixels to %f." % (badPixelCount, badPixelValue))
if badPixelCount > 0:
self.log.info("Set %d BAD pixels to %f." % (badPixelCount, badPixelValue))

flattenedThumb = None
if self.config.qa.doThumbnailFlattened:
Expand Down

0 comments on commit afc1b13

Please sign in to comment.