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)