Skip to content

Commit 940861e

Browse files
authored
Merge pull request #864 from SciML/param_stoich
proposed param stoich doc changes
2 parents 705d684 + 297208f commit 940861e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/pages.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pages = Any[
1212
"model_creation/compositional_modeling.md",
1313
#"model_creation/constraint_equations.md",
1414
# Events.
15-
#"model_creation/parametric_stoichiometry.md",# Distributed parameters, rates, and initial conditions.
15+
"model_creation/parametric_stoichiometry.md",# Distributed parameters, rates, and initial conditions.
1616
"model_creation/model_file_loading_and_export.md",# Distributed parameters, rates, and initial conditions.
1717
# Loading and writing models to files.
1818
"model_creation/model_visualisation.md",

docs/src/model_creation/parametric_stoichiometry.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use symbolic stoichiometries, and discuss several caveats to be aware of.
77
Let's first consider a simple reversible reaction where the number of reactants
88
is a parameter, and the number of products is the product of two parameters.
99
```@example s1
10-
using Catalyst, Latexify, DifferentialEquations, ModelingToolkit, Plots
10+
using Catalyst, Latexify, OrdinaryDiffEq, ModelingToolkit, Plots
1111
revsys = @reaction_network revsys begin
1212
k₊, m*A --> (m*n)*B
1313
k₋, B --> A
@@ -58,6 +58,7 @@ stoichiometries `(F,2*H,2)`.
5858
Let's now convert `revsys` to ODEs and look at the resulting equations:
5959
```@example s1
6060
osys = convert(ODESystem, revsys)
61+
osys = complete(osys)
6162
equations(osys)
6263
show(stdout, MIME"text/plain"(), equations(osys)) # hide
6364
```
@@ -88,6 +89,7 @@ converting to an `ODESystem`). For the previous example this gives the following
8889
(different) system of ODEs
8990
```@example s1
9091
osys = convert(ODESystem, revsys; combinatoric_ratelaws = false)
92+
osys = complete(osys)
9193
equations(osys)
9294
show(stdout, MIME"text/plain"(), equations(osys)) # hide
9395
```
@@ -139,7 +141,9 @@ The parameter `b` does not need to be explicitly declared in the
139141

140142
We next convert our network to a jump process representation
141143
```@example s1
144+
using JumpProcesses
142145
jsys = convert(JumpSystem, burstyrn; combinatoric_ratelaws = false)
146+
jsys = complete(jsys)
143147
equations(jsys)
144148
show(stdout, MIME"text/plain"(), equations(jsys)) # hide
145149
```

0 commit comments

Comments
 (0)