Skip to content

Commit

Permalink
Increase degeneracy if reaction template is the same but out of order.
Browse files Browse the repository at this point in the history
  • Loading branch information
connie committed Jan 5, 2015
1 parent 799abad commit 6519be4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rmgpy/data/kinetics/family.py
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,7 @@ def __generateReactions(self, reactants, products=None, forward=True, failsSpeci
# If we found a match, remove it from the list
# Also increment the reaction path degeneracy of the remaining reaction
if match:
if reaction0.template == reaction.template:
if set(reaction0.template) == set(reaction.template):
# template must match, otherwise we may have found an alternate transition state
reaction0.degeneracy += 1
rxnList.remove(reaction)
Expand All @@ -1497,9 +1497,6 @@ def __generateReactions(self, reactants, products=None, forward=True, failsSpeci
# what it should be, so divide those by two
if sameReactants or self.label.lower().startswith('r_recombination'):
for rxn in rxnList:
print rxn
print rxn.template
print rxn.degeneracy
assert(rxn.degeneracy % 2 == 0)
rxn.degeneracy /= 2

Expand Down

0 comments on commit 6519be4

Please sign in to comment.