| Trees | Indices | Help |
|
|---|
|
|
object --+
|
??.instance --+
|
rdMolDescriptors.PropertyFunctor --+
|
rdMolDescriptors.PythonPropertyFunctor --+
|
PropertyFunctor
Creates a python based property function that can be added to the
global property list. To use, subclass this class and override the
__call__ method. Then create an instance and add it to the
registry. The __call__ method should return a numeric value.
Example:
class NumAtoms(Descriptors.PropertyFunctor):
def __init__(self):
Descriptors.PropertyFunctor.__init__(self, "NumAtoms", "1.0.0")
def __call__(self, mol):
return mol.GetNumAtoms()
numAtoms = NumAtoms()
rdMolDescriptors.Properties.RegisterProperty(numAtoms)
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
__init__( (object)arg1, (object)arg2, (str)arg3, (str)arg4) -> None :
C++ signature :
void __init__(_object*,_object*,std::string,std::string)
|
__call__( (PythonPropertyFunctor)arg1, (Mol)arg2) -> float :
Compute the property for the specified molecule
C++ signature :
double __call__((anonymous namespace)::PythonPropertyFunctor {lvalue},RDKit::ROMol)
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sun Oct 8 11:32:01 2017 | http://epydoc.sourceforge.net |