From e9365723e47fde865be3eece6a6721b14238b435 Mon Sep 17 00:00:00 2001 From: Eli Rykoff Date: Fri, 9 Aug 2024 13:56:15 -0700 Subject: [PATCH] Make isrTask units conform with correct astropy usage (adu/electron). --- python/lsst/ip/isr/isrTask.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/lsst/ip/isr/isrTask.py b/python/lsst/ip/isr/isrTask.py index 7f2ce830d..697b1bdbe 100644 --- a/python/lsst/ip/isr/isrTask.py +++ b/python/lsst/ip/isr/isrTask.py @@ -1385,10 +1385,10 @@ def run(self, ccdExposure, *, camera=None, bias=None, linearizer=None, if self.config.doStrayLight: self.compareCameraKeywords(exposureMetadata, strayLightData, "straylight") - # Start in ADU. Update units to electrons when gain is applied: + # Start in adu. Update units to electrons when gain is applied: # updateVariance, applyGains # Check if needed during/after BFE correction, CTI correction. - exposureMetadata["LSST ISR UNITS"] = "ADU" + exposureMetadata["LSST ISR UNITS"] = "adu" # Begin ISR processing. if self.config.doConvertIntToFloat: @@ -1639,7 +1639,7 @@ def run(self, ccdExposure, *, camera=None, bias=None, linearizer=None, self.log.info("Applying gain correction instead of flat.") isrFunctions.applyGains(ccdExposure, self.config.normalizeGains, ptcGains=ptc.gain) - exposureMetadata["LSST ISR UNITS"] = "electrons" + exposureMetadata["LSST ISR UNITS"] = "electron" if self.config.doFringe and self.config.fringeAfterFlat: self.log.info("Applying fringe correction after flat.")