Skip to content

Commit 485a6dd

Browse files
committed
Merge branch 'tickets/DM-52593'
2 parents f3e3414 + 70f7884 commit 485a6dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/lsst/pipe/tasks/fit_coadd_psf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
]
2626

2727
from .fit_multiband import CatalogExposure, CatalogExposureConfig
28+
from lsst.geom import Point2D
2829
from lsst.meas.base import SkyMapIdGeneratorConfig
2930
import lsst.pex.config as pexConfig
3031
import lsst.pipe.base as pipeBase
@@ -41,8 +42,7 @@ def get_catalog(self):
4142

4243
def get_psf_image(self, source):
4344
"""Return the PSF image for this object."""
44-
bbox = source.getFootprint().getBBox()
45-
center = bbox.getCenter()
45+
center = Point2D(round(source.getX()), round(source.getY()))
4646
return self.exposure.getPsf().computeKernelImage(center).array
4747

4848

0 commit comments

Comments
 (0)