Skip to content

Commit

Permalink
Fix proper setting of coordinates with functor key
Browse files Browse the repository at this point in the history
  • Loading branch information
natelust committed Mar 15, 2016
1 parent cc47c14 commit 8116688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/obs/subaru/objectMasks.py
Expand Up @@ -117,7 +117,7 @@ def readFits(fileName, hdu=0, flags=0):
rec = brightObjects.addNew()
# N.b. rec["coord"] = Coord is not supported, so we have to use the setter
rec["id"] = _id
rec.set("coord", afwCoord.Fk5Coord(ra, dec))
rec.setCoord(afwCoord.Fk5Coord(ra, dec))
rec["radius"] = radius
else:
log.warn("Unexpected line \"%s\" at %s:%d" % (line, fileName, lineNo))
Expand Down

0 comments on commit 8116688

Please sign in to comment.