We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f3e3414 + 70f7884 commit 485a6ddCopy full SHA for 485a6dd
python/lsst/pipe/tasks/fit_coadd_psf.py
@@ -25,6 +25,7 @@
25
]
26
27
from .fit_multiband import CatalogExposure, CatalogExposureConfig
28
+from lsst.geom import Point2D
29
from lsst.meas.base import SkyMapIdGeneratorConfig
30
import lsst.pex.config as pexConfig
31
import lsst.pipe.base as pipeBase
@@ -41,8 +42,7 @@ def get_catalog(self):
41
42
43
def get_psf_image(self, source):
44
"""Return the PSF image for this object."""
- bbox = source.getFootprint().getBBox()
45
- center = bbox.getCenter()
+ center = Point2D(round(source.getX()), round(source.getY()))
46
return self.exposure.getPsf().computeKernelImage(center).array
47
48
0 commit comments