From 67a1bd39bea4f8adf2f4197f633d57e8e424fcf9 Mon Sep 17 00:00:00 2001 From: jrmullaney Date: Wed, 19 Nov 2025 14:03:06 -0800 Subject: [PATCH] Move masked pixel fraction calcs To end of calibrateImage.run() --- python/lsst/pipe/tasks/calibrateImage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/lsst/pipe/tasks/calibrateImage.py b/python/lsst/pipe/tasks/calibrateImage.py index acf94ea55..b64a9b839 100644 --- a/python/lsst/pipe/tasks/calibrateImage.py +++ b/python/lsst/pipe/tasks/calibrateImage.py @@ -918,7 +918,6 @@ def run( id_generator = lsst.meas.base.IdGenerator() result.exposure = self.snap_combine.run(exposures).exposure - self._recordMaskedPixelFractions(result.exposure) self.log.info("Initial PhotoCalib: %s", result.exposure.getPhotoCalib()) result.exposure.metadata["LSST CALIB ILLUMCORR APPLIED"] = False @@ -1082,6 +1081,8 @@ def run( else: result.applied_photo_calib = None + self._recordMaskedPixelFractions(result.exposure) + if self.config.run_sattle: # send boresight and timing information to sattle so the cache # is populated by the time we reach ip_diffim detectAndMeasure.