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

DM-20478: Check that we have an overscan region before calculating its properties #106

Merged
merged 1 commit into from
Jul 8, 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
3 changes: 2 additions & 1 deletion python/lsst/ip/isr/isrTask.py
Expand Up @@ -1204,7 +1204,8 @@ def run(self, ccdExposure, camera=None, bias=None, linearizer=None, crosstalkSou
# Overscan correction on amp-by-amp basis.
overscanResults = self.overscanCorrection(ccdExposure, amp)
self.log.debug(f"Corrected overscan for amplifier {amp.getName()}.")
if self.config.qa is not None and self.config.qa.saveStats is True:
if overscanResults is not None and \
self.config.qa is not None and self.config.qa.saveStats is True:
if isinstance(overscanResults.overscanFit, float):
qaMedian = overscanResults.overscanFit
qaStdev = float("NaN")
Expand Down