Skip to content

Commit

Permalink
Merge pull request #191 from lsst/tickets/DM-31869
Browse files Browse the repository at this point in the history
DM-31869: Add sensible positions to computeShape in tests
  • Loading branch information
arunkannawadi committed Sep 22, 2021
2 parents 7290ee3 + 029b7ac commit 7bffe73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/meas/base/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def __init__(self, bbox, threshold=10.0, exposure=None, **kwds):
exposure = self.makeEmptyExposure(bbox, **kwds)
self.threshold = lsst.afw.detection.Threshold(threshold, lsst.afw.detection.Threshold.VALUE)
self.exposure = exposure
self.psfShape = self.exposure.getPsf().computeShape()
self.psfShape = self.exposure.getPsf().computeShape(bbox.getCenter())
self.schema = self.makeMinimalSchema()
self.catalog = lsst.afw.table.SourceCatalog(self.schema)

Expand Down Expand Up @@ -492,7 +492,7 @@ def transform(self, wcs, **kwds):
result = TestDataset(bbox=bboxI, wcs=wcs, **kwds)
oldPhotoCalib = self.exposure.getPhotoCalib()
newPhotoCalib = result.exposure.getPhotoCalib()
oldPsfShape = self.exposure.getPsf().computeShape()
oldPsfShape = self.exposure.getPsf().computeShape(bboxD.getCenter())
for record in self.catalog:
if record.get(self.keys["nChild"]):
raise NotImplementedError("Transforming blended sources in TestDatasets is not supported")
Expand Down

0 comments on commit 7bffe73

Please sign in to comment.