Skip to content

Commit

Permalink
Cast variables to proper types
Browse files Browse the repository at this point in the history
  • Loading branch information
sr525 committed May 2, 2018
1 parent b58116a commit 0d6ec93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/synpipe/positionStarFakes.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def run(self, exposure, background):

starXY = wcs.skyToPixel(starCoord)
bboxI = exposure.getBBox(PARENT)
bboxI.grow(margin)
bboxI.grow(int(margin))
if not bboxI.contains(afwGeom.Point2I(starXY)):
continue

Expand All @@ -88,7 +88,7 @@ def run(self, exposure, background):
starImage = starImage.Factory(starImage, newBBox, PARENT)
starBBox = newBBox

starMaskedImage = afwImage.MaskedImageF(starImage)
starMaskedImage = afwImage.MaskedImageF(starImage.convertF())

starMaskedImage.getMask().set(self.bitmask)

Expand Down

0 comments on commit 0d6ec93

Please sign in to comment.