Skip to content

Commit a23275e

Browse files
committed
Add max pixel value to psf candidate.
1 parent 90aefe8 commit a23275e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/lsst/meas/algorithms/makePsfCandidates.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ def makePsfCandidates(self, starCat, exposure):
141141
vmax = afwMath.makeStatistics(im, afwMath.MAX).getValue()
142142
if not np.isfinite(vmax):
143143
continue
144+
else:
145+
try:
146+
star['psf_max_value'] = vmax
147+
except Exception:
148+
self.log.warning("Could not set max value")
144149
psfCandidateList.append(psfCandidate)
145150
goodStarCat.append(star)
146151

0 commit comments

Comments
 (0)