Skip to content

Commit

Permalink
Merge branch 'tickets/DM-37393'
Browse files Browse the repository at this point in the history
  • Loading branch information
czwa committed Dec 16, 2022
2 parents aeda0d8 + 404236f commit c1a4598
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/lsst/ip/isr/isrTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -1617,9 +1617,9 @@ def run(self, ccdExposure, *, camera=None, bias=None, linearizer=None,
metadata[f"LSST ISR FINAL MEDIAN {ampName}"] = qaStats.getValue(afwMath.MEDIAN)
metadata[f"LSST ISR FINAL STDEV {ampName}"] = qaStats.getValue(afwMath.STDEVCLIP)

if self.config.doOverscan:
k1 = f"LSST ISR FINAL MEDIAN {ampName}"
k2 = f"LSST ISR OVERSCAN SERIAL MEDIAN {ampName}"
k1 = f"LSST ISR FINAL MEDIAN {ampName}"
k2 = f"LSST ISR OVERSCAN SERIAL MEDIAN {ampName}"
if self.config.doOverscan and k1 in metadata and k2 in metadata:
metadata[f"LSST ISR LEVEL {ampName}"] = metadata[k1] - metadata[k2]
else:
metadata[f"LSST ISR LEVEL {ampName}"] = numpy.nan
Expand Down

0 comments on commit c1a4598

Please sign in to comment.