Skip to content

Commit

Permalink
don't use afwImage.visitInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Wittgen committed Mar 15, 2021
1 parent 8d1d15d commit 3ca58c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/lsst/fgcmcal/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def computeCcdOffsets(camera, defaultOrientation):
# Create a temporary visitInfo for input to createInitialSkyWcs
visitInfo = afwImage.VisitInfo(boresightRaDec=boresight,
boresightRotAngle=orientation,
rotType=afwImage.visitInfo.RotType.SKY)
rotType=afwImage.RotType.SKY)

for i, detector in enumerate(camera):
ccdOffsets['CCDNUM'][i] = detector.getId()
Expand Down Expand Up @@ -472,7 +472,7 @@ def computeReferencePixelScale(camera):
# Create a temporary visitInfo for input to createInitialSkyWcs
visitInfo = afwImage.VisitInfo(boresightRaDec=boresight,
boresightRotAngle=orientation,
rotType=afwImage.visitInfo.RotType.SKY)
rotType=afwImage.RotType.SKY)

pixelScales = np.zeros(len(camera))
for i, detector in enumerate(camera):
Expand Down Expand Up @@ -509,7 +509,7 @@ def computeApproxPixelAreaFields(camera):
# The orientation does not matter for the area computation
visitInfo = afwImage.VisitInfo(boresightRaDec=boresight,
boresightRotAngle=0.0*geom.degrees,
rotType=afwImage.visitInfo.RotType.SKY)
rotType=afwImage.RotType.SKY)

approxPixelAreaFields = {}

Expand Down

0 comments on commit 3ca58c0

Please sign in to comment.