Skip to content

Commit 705d684

Browse files
authored
Merge pull request #867 from SciML/proposed_hh_model_example_changes
Proposed hh model example changes
2 parents 284660b + 377d711 commit 705d684

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/pages.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pages = Any[
2121
"Model creation examples" => Any[
2222
"model_creation/examples/basic_CRN_library.md",
2323
"model_creation/examples/programmatic_generative_linear_pathway.md",
24-
#"model_creation/examples/hodgkin_huxley_equation.md",
24+
"model_creation/examples/hodgkin_huxley_equation.md",
2525
#"model_creation/examples/smoluchowski_coagulation_equation.md"
2626
]
2727
],

docs/src/model_creation/examples/hodgkin_huxley_equation.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ cells such as neurons and muscle cells.
1313
We begin by importing some necessary packages.
1414
```@example hh1
1515
using ModelingToolkit, Catalyst, NonlinearSolve
16-
using DifferentialEquations, Symbolics
16+
using OrdinaryDiffEq, Symbolics
1717
using Plots
1818
t = default_t()
1919
D = default_time_deriv()
@@ -77,6 +77,7 @@ I = I₀ * sin(2*pi*t/30)^2
7777
# get the gating variables to use in the equation for dV/dt
7878
@unpack m,n,h = hhrn
7979
80+
Dₜ = default_time_deriv()
8081
eqs = [Dₜ(V) ~ -1/C * (ḡK*n^4*(V-EK) + ḡNa*m^3*h*(V-ENa) + ḡL*(V-EL)) + I/C]
8182
@named voltageode = ODESystem(eqs, t)
8283
nothing # hide
@@ -88,6 +89,7 @@ Finally, we add this ODE into the reaction model as
8889

8990
```@example hh1
9091
@named hhmodel = extend(voltageode, hhrn)
92+
hhmodel = complete(hhmodel)
9193
nothing # hide
9294
```
9395

0 commit comments

Comments
 (0)