Skip to content

Commit

Permalink
Preventing "Unable to calculate degeneracy for reaction..." Error
Browse files Browse the repository at this point in the history
See issue #545
#545
  • Loading branch information
alongd authored and nyee committed Feb 22, 2017
1 parent 81b4bdc commit 088d1c4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rmgpy/data/kinetics/family.py
Original file line number Diff line number Diff line change
Expand Up @@ -1386,9 +1386,10 @@ def calculateDegeneracy(self, reaction):
logging.error(reactant)
for product in reaction.products:
logging.error(product)
raise KineticsError(('Unable to calculate degeneracy for reaction {0} '
'in reaction family {1}. Expected 1 reaction '
'but generated {2}').format(reaction, self.label, len(reactions)))
print 'SKIP raise KineticsError for degeneracy flag'
# raise KineticsError(('Unable to calculate degeneracy for reaction {0} '
# 'in reaction family {1}. Expected 1 reaction '
# 'but generated {2}').format(reaction, self.label, len(reactions)))
return reactions[0].degeneracy

def __generateReactions(self, reactants, products=None, forward=True):
Expand Down

0 comments on commit 088d1c4

Please sign in to comment.