Skip to content

Commit

Permalink
Removed logging.debug message in reaction.py __setDegeneracy()
Browse files Browse the repository at this point in the history
Due to the numerous calls to __setDegeneracy(), this debug message
appears repeatedly while debuging (or running tests with -d). In fact,
it could get printed so many times that it fills the CMD stack.
  • Loading branch information
alongd committed Jul 12, 2017
1 parent e1c9b7a commit 37f97d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rmgpy/reaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ def __setDegeneracy(self, new):
else:
degeneracyRatio = (new*1.0) / self._degeneracy
self.kinetics.changeRate(degeneracyRatio)
else:
logging.debug('did not modify A factor when modifying degeneracy since ' \
'the reaction rate was not set')
#else:
# logging.debug('did not modify A factor when modifying degeneracy since ' \
# 'the reaction rate was not set')
# set new degeneracy
self._degeneracy = new
degeneracy = property(__getDegneneracy, __setDegeneracy)
Expand Down

0 comments on commit 37f97d6

Please sign in to comment.