Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't modify bond dict while iterating over it.
Fixes this problem: Error: Problem family: Surface_Adsorption_vdW Error: Problem reactants: (Molecule(smiles="[Pt]"), Molecule(smiles="CO")) Traceback (most recent call last): snip File "/Users/rwest/Code/Cat/RMG-Py/rmgpy/data/kinetics/family.py", line 1567, in _generate_product_structures product_structures = self.apply_recipe(reactant_structures, forward=forward) File "/Users/rwest/Code/Cat/RMG-Py/rmgpy/data/kinetics/family.py", line 1483, in apply_recipe struct.remove_van_der_waals_bonds() File "rmgpy/molecule/molecule.py", line 1091, in rmgpy.molecule.molecule.Molecule.remove_van_der_waals_bonds File "rmgpy/molecule/molecule.py", line 1097, in rmgpy.molecule.molecule.Molecule.remove_van_der_waals_bonds RuntimeError: dictionary changed
- Loading branch information