23 import lsst.afw.image
as afwImage
25 __all__ = [
"makeBitMask"]
29 """Generate a bit mask consisting of ORed together Mask bit planes 31 @deprecated use afwImage.Mask.getPlaneBitMask(maskPlaneNameList) instead. 33 @input[in] maskPlaneNameList: list of mask plane names 34 @input[in] doInvert: if True then invert the result 36 @return a bit mask consisting of the named bit planes ORed together (with the result possibly inverted) 38 bitMask = afwImage.Mask.getPlaneBitMask(maskPlaneNameList)
40 bitMask = (2**afwImage.Mask.getNumPlanesMax() - 1) - bitMask
def makeBitMask(maskPlaneNameList, doInvert=False)