def count_bits( self ):                                          #(k1)
        return reduce( lambda x, y: int(x)+int(y), self )            #(k2)
Return the number of bits set in a BitVector instance.
dataset/ETHPy150Open networkdynamics/zenlib/src/zen/util/bitvector.py/BitVector.count_bits