OECalculateMolecularWeight
OECalculateMolecularWeight(mol: Union[OEGraphMol,OEMol,OEQMol],
isotopic: bool = False) -> float
Calculates the molecular weight of the given molecule.
By default, all atoms are assumed their average atomic weight, as returned
by the OEGetAverageWeight function.
- isotopic
This parameter determines whether to use the
OEGetIsotopicWeightfunction instead ofOEGetAverageWeight. Atoms must have a specified (non-zero) isotopic mass, as returned byOEAtomBase.GetIsotope
See also
Example program sizefilter.py
Example program molstats.py