Skip to content

Commit

Permalink
Make sure selected molecule is reactive
Browse files Browse the repository at this point in the history
  • Loading branch information
mliu49 committed Apr 5, 2019
1 parent bb121eb commit 920e501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmgpy/data/kinetics/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def independent_ids():
logging.debug('identical atom ids found between species. regenerating')
for species in input_species:
unreactive_mol_list = [mol for mol in species.molecule if not mol.reactive]
mol = species.molecule[0]
mol = [mol for mol in species.molecule if mol.reactive][0] # Choose first reactive molecule
mol.assignAtomIDs()
species.molecule = [mol]
# Remake resonance structures with new labels
Expand Down

0 comments on commit 920e501

Please sign in to comment.