Skip to content

Commit 511e8cf

Browse files
authored
Merge pull request #1151 from lsst/tickets/DM-51929
DM-51929: Fix numerator in computation of summary.psfArea.
2 parents 485a6dd + 985300c commit 511e8cf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

python/lsst/pipe/tasks/computeExposureSummaryStats.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,8 @@ def update_psf_stats(
335335
summary.psfIxy = shape.getIxy()
336336
im = psf.computeKernelImage(bbox.getCenter())
337337
# The calculation of effective psf area is taken from
338-
# meas_base/src/PsfFlux.cc#L112. See
339-
# https://github.com/lsst/meas_base/blob/
340-
# 750bffe6620e565bda731add1509507f5c40c8bb/src/PsfFlux.cc#L112
341-
summary.psfArea = float(np.sum(im.array)/np.sum(im.array**2.))
338+
# ls.st/srd Equation 1.
339+
summary.psfArea = float(np.sum(im.array)**2./np.sum(im.array**2.))
342340

343341
if image_mask is not None:
344342
psfApRadius = max(self.config.minPsfApRadiusPix, 3.0*summary.psfSigma)

0 commit comments

Comments
 (0)