Skip to content

Commit

Permalink
Fix proper reading of coordinate with functor
Browse files Browse the repository at this point in the history
  • Loading branch information
natelust committed Mar 15, 2016
1 parent e618450 commit eb186c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/pipe/tasks/assembleCoadd.py
Expand Up @@ -601,7 +601,7 @@ def setBrightObjectMasks(self, exposure, dataId, brightObjectMasks):
plateScale = wcs.pixelScale().asArcseconds()

for rec in brightObjectMasks:
center = afwGeom.PointI(wcs.skyToPixel(rec.get("coord")))
center = afwGeom.PointI(wcs.skyToPixel(rec.getCoord()))
radius = rec["radius"].asArcseconds()/plateScale # convert to pixels

foot = afwDetect.Footprint(center, radius, exposure.getBBox())
Expand Down

0 comments on commit eb186c5

Please sign in to comment.