From 49a7816d798f05af97ce1a16e9e2be8000dc13dd 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/lsst/meas/algorithms/makePsfCandidates.py b/python/lsst/meas/algorithms/makePsfCandidates.py index 14fec54c..e0931a2e 100644 --- a/python/lsst/meas/algorithms/makePsfCandidates.py +++ b/python/lsst/meas/algorithms/makePsfCandidates.py @@ -141,6 +141,8 @@ def makePsfCandidates(self, starCat, exposure): vmax = afwMath.makeStatistics(im, afwMath.MAX).getValue() if not np.isfinite(vmax): continue + if 'psf_max_value' in star.schema: + star['psf_max_value'] = vmax psfCandidateList.append(psfCandidate) goodStarCat.append(star)