Skip to content

Commit

Permalink
Replace dimensions.getWidth/getHeight by getX/getY
Browse files Browse the repository at this point in the history
  • Loading branch information
Hsin-Fang Chiang committed Sep 14, 2017
1 parent 9ccc995 commit 3c908fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/meas/mosaic/mosaicTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def readSrc(self, dataRef):
if hscRun is None:
if nQuarter%4 != 0:
dims = afwImage.bboxFromMetadata(calexp_md).getDimensions()
sources = mosaicUtils.rotatePixelCoords(sources, dims.getWidth(), dims.getHeight(),
sources = mosaicUtils.rotatePixelCoords(sources, dims.getX(), dims.getY(),
nQuarter)

# Set the aliap map for the source catalog
Expand Down Expand Up @@ -630,7 +630,7 @@ def writeNewWcs(self, dataRefList):
if nQuarter%4 != 0:
dimensions = afwImage.bboxFromMetadata(calexp_md).getDimensions()
if nQuarter%2 != 0:
dimensions = afwGeom.Extent2I(dimensions.getHeight(), dimensions.getWidth())
dimensions = afwGeom.Extent2I(dimensions.getY(), dimensions.getX())
wcs = measAstrom.rotateWcsPixelsBy90(wcs, 4 - nQuarter, dimensions)

exp.setWcs(wcs)
Expand Down

0 comments on commit 3c908fc

Please sign in to comment.