Skip to content

Commit

Permalink
Fix bug in annulus creation
Browse files Browse the repository at this point in the history
  • Loading branch information
MorganSchmitz committed Jan 14, 2021
1 parent f2b8a73 commit 2a653cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/meas/algorithms/brightStarStamps.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def measureAndNormalize(self, annulus, statsControl=afwMath.StatisticsControl(),
maskPlaneDict = self.stamp_im.mask.getMaskPlaneDict()
annulusImage = MaskedImageF(stampSize, planeDict=maskPlaneDict)
annulusMask = annulusImage.mask
annulusMask.array[:] = maskPlaneDict['NO_DATA']
annulusMask.array[:] = 2**maskPlaneDict['NO_DATA']
annulus.copyMaskedImage(self.stamp_im, annulusImage)
# set mask planes to be ignored
andMask = reduce(ior, (annulusMask.getPlaneBitMask(bm) for bm in badMaskPlanes))
Expand Down

0 comments on commit 2a653cd

Please sign in to comment.