add_bond_candidate()
Add a bond candidate, with all its neighbors by ascending index.
Usage
add_bond_candidate(
candidates,
connectivity,
bond,
)No filter is applied: a caller overrides the perception on purpose. Remove an atom candidate of the bond yourself where it applies. For a TS, the bond and its neighbors may be breaking or forming bonds.
Raises
ValueError- The pair isn’t a bond, or one of its atoms has no other neighbor.
Examples
>>> import amchi
>>> connectivity = amchi.Connectivity(bonds=[(0, 1), (1, 2), (2, 3)])
>>> amchi.add_bond_candidate(amchi.Candidates(), connectivity, (2, 1)).bonds{(1, 2): ((0,), (3,))}