Skip to content

Commit 2fdb32d

Browse files
committed
more doc fixes
1 parent 84da329 commit 2fdb32d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/src/model_creation/examples/hodgkin_huxley_equation.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,24 +138,26 @@ We observe three action potentials due to the steady applied current.
138138
As an illustration of how one can construct models from individual components,
139139
we now separately construct and compose the model components.
140140

141-
We start by defining systems to model each ionic current:
141+
We start by defining systems to model each ionic current. Note we now use
142+
`@network_component` instead of `@reaction_network` as we want the models to be
143+
composable and not marked as finalized.
142144
```@example hh1
143-
IKmodel = @reaction_network IKmodel begin
145+
IKmodel = @network_component IKmodel begin
144146
@parameters ḡK = 36.0 EK = -82.0
145147
@variables V(t) Iₖ(t)
146148
(αₙ(V), βₙ(V)), n′ <--> n
147149
@equations Iₖ ~ ḡK*n^4*(V-EK)
148150
end
149151
150-
INamodel = @reaction_network INamodel begin
152+
INamodel = @network_component INamodel begin
151153
@parameters ḡNa = 120.0 ENa = 45.0
152154
@variables V(t) Iₙₐ(t)
153155
(αₘ(V), βₘ(V)), m′ <--> m
154156
(αₕ(V), βₕ(V)), h′ <--> h
155157
@equations Iₙₐ ~ ḡNa*m^3*h*(V-ENa)
156158
end
157159
158-
ILmodel = @reaction_network ILmodel begin
160+
ILmodel = @network_component ILmodel begin
159161
@parameters ḡL = .3 EL = -59.0
160162
@variables V(t) Iₗ(t)
161163
@equations Iₗ ~ ḡL*(V-EL)
@@ -165,7 +167,7 @@ nothing # hide
165167

166168
We next define the voltage dynamics with unspecified values for the currents
167169
```@example hh1
168-
hhmodel2 = @reaction_network hhmodel2 begin
170+
hhmodel2 = @network_component hhmodel2 begin
169171
@parameters C = 1.0 I₀ = 0.0
170172
@variables V(t) Iₖ(t) Iₙₐ(t) Iₗ(t)
171173
@equations D(V) ~ -1/C * (Iₖ + Iₙₐ + Iₗ) + Iapp(t,I₀)

0 commit comments

Comments
 (0)