Package CHEM :: Package datatype :: Module finger :: Class ImmutableFinger
[hide private]
[frames] | no frames]

Class ImmutableFinger



_object --+    
          |    
     Finger --+
              |
             ImmutableFinger

Instance Methods [hide private]
 
__hash__(self)
* In this module there are a large number of functions.
 
__setitem__(self, k, v)
If a Fingerprint is mutable, a Finger, it can be altered:

Inherited from Finger: Bitcount, __and__, __cmp__, __getitem__, __init__, __len__, __or__, __reduce__, __repr__, __str__, bitcount, density

Class Variables [hide private]

Inherited from Finger: __del__, __getattr__, __setattr__, __swig_destroy__, __swig_getmethods__, __swig_setmethods__

Method Details [hide private]

__hash__(self)
(Hashing function)

 

* In this module there are a large number of functions. They are partially organized by different * prefixes. * * FP = General purpose functions and functions for operating on standard folded fingerprints. * * FPD = Bit Decoders used to read fingerprints as binary data. This set of functions is used to * by the more complex compression schemes to decode fingerprints encoded by golomb.py. * * And a few definitions of different compressed types of fingerprints. Each of these types has a * special digit (G,S,P, or M) used at times to signal there usage in arguements. For example, * a FPSG???(FINGER *f1, FINGER *f2) would take a Sparse fingerprint for f1 and a Golomb fingerprint * for f2. * * FPG = Golomb Fingerprints encoded as described in golomb.py * FPS = Sparse fingerprints, storing 32-bit integers in system format. * FPP = Modified Elias Gamma MEG-I fingerprints as described in golomb.py. * FPM = Modified Elias Gamma MEG-R fingerprints as described in golomb.py.

Some of these names may seem cryptic. Many of them are renamed much prettier names in prettyfinger.py.
Returns:
int

Overrides: Finger.__hash__

__setitem__(self, k, v)
(Index assignment operator)

 
If a Fingerprint is mutable, a Finger, it can be altered:
>>> f=Finger(128)
>>> f[2]=1
>>> f=ImmutableFinger(128)
>>> f[2]=1
Traceback (most recent call last):
    ...
TypeError: object does not support item assignment.
Overrides: Finger.__setitem__