Skip to content

Commit

Permalink
Fix two bugs in KineticsModel.__repr__
Browse files Browse the repository at this point in the history
First, the Tmin and Tmax were being printed for Pmin and Pmax,
and the Pmin was being printed as the comment.

Second, the uncertainty was not being reported.
  • Loading branch information
rwest authored and mliu49 committed Sep 27, 2019
1 parent 9426237 commit 7da229d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmgpy/kinetics/model.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ cdef class KineticsModel:
Return a string representation that can be used to reconstruct the
KineticsModel object.
"""
return 'KineticsModel(Tmin={0!r}, Tmax={1!r}, Pmin={0!r}, Pmax={1!r}, comment="""{2}""")'.format(
return 'KineticsModel(Tmin={0!r}, Tmax={1!r}, Pmin={2!r}, Pmax={3!r}, uncertainty={4!r}, comment="""{5}""")'.format(
self.Tmin, self.Tmax, self.Pmin, self.Pmax, self.uncertainty, self.comment)

def __reduce__(self):
Expand Down

0 comments on commit 7da229d

Please sign in to comment.