Skip to content

Commit

Permalink
Update an example
Browse files Browse the repository at this point in the history
  • Loading branch information
r-owen committed Dec 13, 2017
1 parent 5e3949c commit 130b1e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/exampleUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,10 @@ def makeFakeWcs():
'''!Make a wcs to put in an exposure
\return a Wcs object
'''
return afwImage.makeWcs(afwCoord.IcrsCoord(45.0*afwGeom.degrees, 45.0*afwGeom.degrees),
afwGeom.Point2D(0.0, 0.0), 1.0, 0.0, 0.0, 1.0)
return afwGeom.makeSkyWcs(crpix=afwGeom.Point2D(0.0, 0.0),
crval=afwCoord.IcrsCoord(45.0*afwGeom.degrees, 45.0*afwGeom.degrees),
cdMatrix=afwGeom.makeCdMatrix(scale=1.0*afwGeom.degrees),
)


def makeExpFromIm(im, detector):
Expand Down

0 comments on commit 130b1e8

Please sign in to comment.