From a23275e4764e9f56515d74c1741a96a0ed136bc6 Mon Sep 17 00:00:00 2001 From: Pierre-Francois Leget Date: Tue, 10 Jun 2025 10:12:01 -0700 Subject: [PATCH] Add max pixel value to psf candidate. --- python/lsst/meas/algorithms/makePsfCandidates.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/lsst/meas/algorithms/makePsfCandidates.py b/python/lsst/meas/algorithms/makePsfCandidates.py index 14fec54c..7639db83 100644 --- a/python/lsst/meas/algorithms/makePsfCandidates.py +++ b/python/lsst/meas/algorithms/makePsfCandidates.py @@ -141,6 +141,11 @@ def makePsfCandidates(self, starCat, exposure): vmax = afwMath.makeStatistics(im, afwMath.MAX).getValue() if not np.isfinite(vmax): continue + else: + try: + star['psf_max_value'] = vmax + except Exception: + self.log.warning("Could not set max value") psfCandidateList.append(psfCandidate) goodStarCat.append(star)