Skip to content

Commit

Permalink
remove unneeded states from LIFNeuron (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasonProtter authored Jul 18, 2024
1 parent fa99ee3 commit 46b6a40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/blox/neuron_models.jl
Original file line number Diff line number Diff line change
Expand Up @@ -613,14 +613,14 @@ struct LIFNeuron <: AbstractNeuronBlox
I_in=0.0)
p = paramscoping(C=C, Eₘ=Eₘ, Rₘ=Rₘ, τ=τ, θ=θ, E_syn=E_syn, G_syn=G_syn, I_in=I_in)
C, Eₘ, Rₘ, τ, θ, E_syn, G_syn, I_in = p
sts = @variables V(t) = -70.00 G(t)=0.0 z(t)=0.0 Cₜ(t) = 0.0 jcn(t)=0.0 [input=true]
sts = @variables V(t) = -70.00 G(t)=0.0 jcn(t)=0.0 [input=true]
eqs = [ D(V) ~ (-(V-Eₘ)/Rₘ + I_in + jcn)/C,
D(G)~(-1/τ)*G,
]

ev = [V~θ] => [V~Eₘ, G~G+G_syn]
sys = ODESystem(eqs, t, sts, p, continuous_events=[ev]; name=name)
new(p, sts[2], sts[5], sts[1], sys, namespace)
new(p, sts[2], sts[3], sts[1], sys, namespace)
end
end

Expand Down Expand Up @@ -712,4 +712,4 @@ struct IzhikevichNeuron <: AbstractNeuronBlox
sys = ODESystem(eqs, t, sts, p, continuous_events=[ev]; name=name)
new(p, sts[2], sts[5], sts[1], sys, namespace)
end
end
end

0 comments on commit 46b6a40

Please sign in to comment.