Skip to content

Commit

Permalink
Merge pull request #1181 from sys-bio/issue-1172-document-setvalues
Browse files Browse the repository at this point in the history
Add documentation string to the 'setValues' python command.
  • Loading branch information
luciansmith committed Feb 2, 2024
2 parents 812eb79 + c696db6 commit 474bd44
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wrappers/Python/roadrunner/roadrunner.i
Original file line number Diff line number Diff line change
Expand Up @@ -1282,6 +1282,11 @@ namespace std { class ostream{}; }
return _roadrunner.RoadRunner__getValue(self, *args)

def setValues(self, keys, values):
"""
Sets the values as defined in the 'keys' list to be the corresponding value in the 'values' list.
:param keys (list): The list of id strings to set.
:param values (list): The list of values to use. Must be identical in length to 'keys'.
"""
for key, val in zip(keys, values):
_roadrunner.RoadRunner_setValue(self, key, val)

Expand Down

0 comments on commit 474bd44

Please sign in to comment.