scm_molsg.Mol¶
- class scm_molsg.Mol¶
This class represents instances of molecules or groups of molecules. It contains information about a molecule as well as containers of its atoms and bonds. The molecule hash can be accessed here.
Attributes
atomsA list of molsg Atom objects, corresponding to each atom in the molecule.
bondsA list of molsg Bond objects, corresponding to each bond in the molecule.
hashThe hash value for the entire molecule.
is_validA boolean to indicate whether the molecule could be used to construct hashes.
num_atomsThe (integer) number of atoms in the molecule.
num_bondsThe (integer) number of bonds in the molecule.
Methods
- get_hash(self: scm_molsg_internal.Mol) None¶
Calculate hashes for all atoms as well as a single hash for the molecule.
- get_view(self: scm_molsg_internal.Mol) List[int]¶
Returns the atom indices of atoms contained in the current view.