OpenBabelMolManager
name: str
__init__(self, mol, obmol=None):
LLM Docstring
Wrap an OpenBabel molecule object for a given molecule, optionally supplying an already-constructed OpenBabel molecule.
mol:AbstractMoleculethe molecule this manager wraps an OpenBabel representation for
obmol:object | Nonean existing OpenBabel
OBMolobject to use, if already available:returns:NoneNone
load(self):
LLM Docstring
Lazily build (and cache) the underlying OpenBabel OBMol object by converting the molecule to an SDF string via SDFFormatHandler and reading it in with pybel.
:returns:objectthe OpenBabel
OBMolobject
update(self, val):
LLM Docstring
Replace the cached OpenBabel molecule object.
val:objectthe new OpenBabel molecule object
:returns:NoneNone
apply_transformation(self, transf):
Applies a transformation to the held values
transf:MolecularTransformation:returns:PropertyManager
insert_atoms(self, atoms, coords, where):
Handles the insertion of new atoms into the structure
atoms:tuple[str]coords:CoordinateSetwhere:tuple[int]:returns:_
delete_atoms(self, where):
Handles the deletion from the structure
atoms:tuple[str]coords:CoordinateSetwhere:tuple[int]:returns:_