Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lower logger messages from INFO to DEBUG level #71

Merged
merged 1 commit into from
Jan 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 10 additions & 10 deletions python/lsst/ip/isr/isrTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ def run(self, ccdExposure, camera=None, bias=None, linearizer=None, crosstalkSou
if self.config.doOverscan and not badAmp:
# Overscan correction on amp-by-amp basis.
overscanResults = self.overscanCorrection(ccdExposure, amp)
self.log.info("Corrected overscan for amplifier %s" % (amp.getName()))
self.log.debug("Corrected overscan for amplifier %s" % (amp.getName()))
if self.config.qa is not None and self.config.qa.saveStats is True:
if isinstance(overscanResults.overscanFit, float):
qaMedian = overscanResults.overscanFit
Expand All @@ -848,8 +848,8 @@ def run(self, ccdExposure, camera=None, bias=None, linearizer=None, crosstalkSou

self.metadata.set("ISR OSCAN {} MEDIAN".format(amp.getName()), qaMedian)
self.metadata.set("ISR OSCAN {} STDEV".format(amp.getName()), qaStdev)
self.log.info(" Overscan stats for amplifer %s: %f +/- %f" %
(amp.getName(), qaMedian, qaStdev))
self.log.debug(" Overscan stats for amplifer %s: %f +/- %f" %
(amp.getName(), qaMedian, qaStdev))
ccdExposure.getMetadata().set('OVERSCAN', "Overscan corrected")
else:
self.log.warn("Amplifier %s is bad." % (amp.getName()))
Expand Down Expand Up @@ -885,7 +885,7 @@ def run(self, ccdExposure, camera=None, bias=None, linearizer=None, crosstalkSou
if self.config.doVariance:
for amp, overscanResults in zip(ccd, overscans):
if ccdExposure.getBBox().contains(amp.getBBox()):
self.log.info("Constructing variance map for amplifer %s" % (amp.getName()))
self.log.debug("Constructing variance map for amplifer %s" % (amp.getName()))
ampExposure = ccdExposure.Factory(ccdExposure, amp.getBBox())
if overscanResults is not None:
self.updateVariance(ampExposure, amp,
Expand All @@ -900,9 +900,9 @@ def run(self, ccdExposure, camera=None, bias=None, linearizer=None, crosstalkSou
qaStats.getValue(afwMath.MEDIAN))
self.metadata.set("ISR VARIANCE {} STDEV".format(amp.getName()),
qaStats.getValue(afwMath.STDEVCLIP))
self.log.info(" Variance stats for amplifer %s: %f +/- %f" %
(amp.getName(), qaStats.getValue(afwMath.MEDIAN),
qaStats.getValue(afwMath.STDEVCLIP)))
self.log.debug(" Variance stats for amplifer %s: %f +/- %f" %
(amp.getName(), qaStats.getValue(afwMath.MEDIAN),
qaStats.getValue(afwMath.STDEVCLIP)))

if self.doLinearize(ccd):
self.log.info("Applying linearizer.")
Expand Down Expand Up @@ -1031,9 +1031,9 @@ def run(self, ccdExposure, camera=None, bias=None, linearizer=None, crosstalkSou
qaStats.getValue(afwMath.MEDIAN))
self.metadata.set("ISR BACKGROUND {} STDEV".format(amp.getName()),
qaStats.getValue(afwMath.STDEVCLIP))
self.log.info(" Background stats for amplifer %s: %f +/- %f" %
(amp.getName(), qaStats.getValue(afwMath.MEDIAN),
qaStats.getValue(afwMath.STDEVCLIP)))
self.log.debug(" Background stats for amplifer %s: %f +/- %f" %
(amp.getName(), qaStats.getValue(afwMath.MEDIAN),
qaStats.getValue(afwMath.STDEVCLIP)))

self.debugView(ccdExposure, "postISRCCD")

Expand Down