Skip to content

Commit

Permalink
Make isrTask units conform with correct astropy usage (adu/electron).
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed Aug 9, 2024
1 parent adb73b0 commit e936572
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 @@ -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:
Expand Down Expand Up @@ -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.")
Expand Down

0 comments on commit e936572

Please sign in to comment.