Skip to content

Commit

Permalink
remove spikes_window from TAN and add it to Matrisome as `TAN_s…
Browse files Browse the repository at this point in the history
…pikes`
  • Loading branch information
harisorgn committed Feb 9, 2024
1 parent a23fd54 commit 5a3ae56
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/blox/discrete.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ struct Matrisome <: AbstractDiscrete
odesystem
namespace

function Matrisome(; name, namespace=nothing, t_event=180.0) #HACK : this t_event has to be informed from the t_event in Action Selection block
function Matrisome(; name, namespace=nothing, t_event=180.0)
#HACK : this t_event has to be informed from the t_event in Action Selection block
@variables t
sts = @variables ρ(t)=0.0 ρ_(t)
ps = @parameters H=1 jcn=0.0 [input=true] jcn_=0.0 H_=1 #HACK : jcn_ and H_ store the value of jcn and H at time t_event that can be accessed after the simulation
#HACK : jcn_ and H_ store the value of jcn and H at time t_event that can be accessed after the simulation
ps = @parameters H=1 TAN_spikes=0.0 jcn=0.0 [input=true] jcn_=0.0 H_=1
eqs = [
ρ ~ H*jcn,
ρ_ ~ H_*jcn_
Expand Down Expand Up @@ -49,7 +51,7 @@ struct TAN <: AbstractDiscrete
function TAN(; name, namespace=nothing, κ=100, λ=1)
@variables t
sts = @variables R(t)=κ
ps = @parameters κ=κ spikes_window=0.0 jcn=0.0 [input=true]
ps = @parameters κ=κ jcn=0.0 [input=true]
eqs = [
R ~ minimum([κ, κ/*jcn + eps())])
]
Expand Down

0 comments on commit 5a3ae56

Please sign in to comment.