rdkit.DataStructs.VectCollection

Package rdkit :: Package DataStructs :: Module VectCollection |
[hide private]
[frames] | no frames]

# Module VectCollection

source code

Classes | [hide private]
| VectCollection >>> vc = VectCollection() >>> bv1 = DataStructs.ExplicitBitVect(10) >>> bv1.SetBitsFromList((1,3,5)) >>> vc.AddVect(1,bv1) >>> bv1 = DataStructs.ExplicitBitVect(10) >>> bv1.SetBitsFromList((6,8)) >>> vc.AddVect(2,bv1) >>> len(vc) 10 >>> vc.GetNumBits() 10 >>> vc[0] 0 >>> vc[1] 1 >>> vc[9] 0 >>> vc[6] 1 >>> vc.GetBit(6) 1 >>> list(vc.GetOnBits()) [1, 3, 5, 6, 8]

Functions | [hide private]
_runDoctests(verbose=None) | source code

Variables | [hide private]
| __package__ = ``'``rdkit.DataStructs``'``

Imports: copy, struct, iterkeys, six, DataStructs