Skip to content

Commit

Permalink
Replace usage of removed 'is_reversible' method in Python tutorial
Browse files Browse the repository at this point in the history
Fixes #256
  • Loading branch information
speth committed Dec 4, 2023
1 parent 7706864 commit d6000f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/tutorials/PythonTutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ reactions are zero. Here is the code to do this:
>>> rf = g.forward_rates_of_progress
>>> rr = g.reverse_rates_of_progress
>>> for i in range(g.n_reactions):
... if g.is_reversible(i) and rf[i] != 0.0:
... if g.reaction(i).reversible and rf[i] != 0.0:
... print(' %4i %10.4g ' % (i, (rf[i] - rr[i])/rf[i]))
If the magnitudes of the numbers in this list are all very small, then each
Expand Down

0 comments on commit d6000f2

Please sign in to comment.