From db50336399f3ba3a2865de620a01c9898c6280a7 Mon Sep 17 00:00:00 2001 From: Jim Bosch Date: Tue, 12 Nov 2024 21:38:08 -0500 Subject: [PATCH] Actually save calibrated catalog in ReprocessVisitImage. --- python/lsst/drp/tasks/reprocess_visit_image.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/python/lsst/drp/tasks/reprocess_visit_image.py b/python/lsst/drp/tasks/reprocess_visit_image.py index 90061485..15523688 100644 --- a/python/lsst/drp/tasks/reprocess_visit_image.py +++ b/python/lsst/drp/tasks/reprocess_visit_image.py @@ -491,7 +491,11 @@ def run( result.exposure.info.setSummaryStats( self.compute_summary_stats.run(result.exposure, result.sources_footprints, background) ) - self._apply_photo_calib(result.exposure, result.sources_footprints, photo_calib) + result.sources_footprints = self._apply_photo_calib( + result.exposure, + result.sources_footprints, + photo_calib, + ) result.sources = result.sources_footprints.asAstropy() return result @@ -592,11 +596,11 @@ def _apply_photo_calib(self, exposure, sources_footprints, photo_calib): Star catalog with flux/magnitude columns computed from the supplied PhotoCalib. """ - sources_footprints = photo_calib.calibrateCatalog(sources_footprints) + calibrated_sources_footprints = photo_calib.calibrateCatalog(sources_footprints) exposure.maskedImage = photo_calib.calibrateImage(exposure.maskedImage) identity = afwImage.PhotoCalib(1.0, photo_calib.getCalibrationErr(), bbox=exposure.getBBox()) exposure.setPhotoCalib(identity) - return sources_footprints + return calibrated_sources_footprints def combine_backgrounds(initial_pvi_background, sky_corr):