Skip to content

Commit

Permalink
small corrections to Generic2dOsc
Browse files Browse the repository at this point in the history
  • Loading branch information
helmutstrey committed Jun 26, 2024
1 parent c2171d7 commit 4d3f1f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Neuroblox.jl
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function __init__()
end

export JansenRitSPM12, next_generation, qif_neuron, if_neuron, hh_neuron_excitatory,
hh_neuron_inhibitory, van_der_pol
hh_neuron_inhibitory, van_der_pol, Generic2dOscillator
export HHNeuronExciBlox, HHNeuronInhibBlox, IFNeuron, LIFNeuron, QIFNeuron, IzhikevichNeuron,
CanonicalMicroCircuitBlox, WinnerTakeAllBlox, CorticalBlox, SuperCortical, HHNeuronInhib_MSN_Adam_Blox, HHNeuronInhib_FSI_Adam_Blox, HHNeuronExci_STN_Adam_Blox,
HHNeuronInhib_GPe_Adam_Blox, Striatum_MSN_Adam, Striatum_FSI_Adam, GPe_Adam, STN_Adam
Expand Down
6 changes: 3 additions & 3 deletions src/blox/neural_mass.jl
Original file line number Diff line number Diff line change
Expand Up @@ -417,15 +417,15 @@ struct Generic2dOscillator <: NeuralMassBlox
α=1.0,
β=1.0,
γ=6e-2,
bn=5e-4,
bn=0.02,
)
p = paramscoping=τ, a=a,b=b,c=c,d=d,e=e,f=f,g=g,α=α,β=β,γ=γ)
τ,a,b,c,d,e,f,g,α,β,γ = p

sts = @variables V(t)=0.0 [output = true] W(t)=1.0 jcn(t)=0.0 [input=true]
@brownian w
@brownian w v
eqs = [ D(V) ~ d * τ * ( -f * V^3 + e * V^2 + g * V + α * W - γ * jcn) + bn * w,
D(W) ~ d / τ * ( c * V^2 + b * V - β * W + a) + bn * w]
D(W) ~ d / τ * ( c * V^2 + b * V - β * W + a) + bn * v]
sys = System(eqs, t, sts, p; name=name)
new(p, sts[1], sts[3], sys, namespace)
end
Expand Down

0 comments on commit 4d3f1f8

Please sign in to comment.