Skip to content

Commit

Permalink
Update for new Detector.transform API
Browse files Browse the repository at this point in the history
  • Loading branch information
r-owen committed Feb 27, 2018
1 parent 83dc6f3 commit 1a92d53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/lsst/meas/base/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ def measure(self, measRecord, exposure):
fp = lsst.afw.geom.Point2D(numpy.nan, numpy.nan)
else:
center = measRecord.getCentroid()
posInPix = det.makeCameraPoint(center, lsst.afw.cameraGeom.PIXELS)
fp = det.transform(posInPix, lsst.afw.cameraGeom.FOCAL_PLANE).getPoint()
fp = det.transform(center, lsst.afw.cameraGeom.PIXELS, lsst.afw.cameraGeom.FOCAL_PLANE)
measRecord.set(self.focalValue, fp)

def fail(self, measRecord, error=None):
Expand Down

0 comments on commit 1a92d53

Please sign in to comment.