Skip to content

Commit

Permalink
Merge pull request #6 from sys-bio/develop
Browse files Browse the repository at this point in the history
Pull to HEAD
  • Loading branch information
Kiri Choi authored Sep 19, 2017
2 parents 000808f + 57f0dd2 commit 6a2394d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions wrappers/Python/roadrunner/roadrunner.i
Original file line number Diff line number Diff line change
Expand Up @@ -1460,6 +1460,32 @@ namespace std { class ostream{}; }

return result

# ---------------------------------------------------------------------
# Reset Methods
# ---------------------------------------------------------------------
def resetToOrigin(self):
""" Reset model to state when first loaded.
This resets the model back to the state when it was FIRST loaded,
this includes all init() and parameters such as k1 etc.
identical to:
r.reset(_roadrunner.SelectionRecord.ALL)
"""
self.reset(_roadrunner.SelectionRecord.ALL)

def resetAll(self):
""" Reset all model variables to CURRENT init(X) values.
This resets all variables, S1, S2 etc to the CURRENT init(X) values. It also resets all
parameters back to the values they had when the model was first loaded.
"""
self.reset(_roadrunner.SelectionRecord.TIME |
_roadrunner.SelectionRecord.RATE |
_roadrunner.SelectionRecord.FLOATING |
_roadrunner.SelectionRecord.GLOBAL_PARAMETER)


def getAvailableIntegrators(self):
"""
get a list of available integrator names.
Expand Down

0 comments on commit 6a2394d

Please sign in to comment.