Skip to content

Commit

Permalink
Store kwargs inside CircuitBlox (#406)
Browse files Browse the repository at this point in the history
* remove unneeded `@parameters`

* store kwargs in `CircuitBlox`
  • Loading branch information
MasonProtter authored Sep 11, 2024
1 parent 1af9e64 commit 4dbd7a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/blox/cortical.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ struct LIFExciCircuitBlox <: CompositeBlox
parts
odesystem
connector
kwargs

function LIFExciCircuitBlox(;
name,
Expand Down Expand Up @@ -157,7 +158,7 @@ struct LIFExciCircuitBlox <: CompositeBlox

sys = isnothing(namespace) ? system_from_graph(g, bc; name) : system_from_parts(neurons; name)

new(namespace, neurons, sys, bc)
new(namespace, neurons, sys, bc, kwargs)
end
end

Expand All @@ -166,6 +167,7 @@ struct LIFInhCircuitBlox <: CompositeBlox
parts
odesystem
connector
kwargs

function LIFInhCircuitBlox(;
name,
Expand Down Expand Up @@ -230,6 +232,6 @@ struct LIFInhCircuitBlox <: CompositeBlox

sys = isnothing(namespace) ? system_from_graph(g, bc; name) : system_from_parts(neurons; name)

new(namespace, neurons, sys, bc)
new(namespace, neurons, sys, bc, kwargs)
end
end
2 changes: 0 additions & 2 deletions src/blox/sources.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@parameters t

# Simple input blox
mutable struct ExternalInput <: StimulusBlox
namespace
Expand Down

0 comments on commit 4dbd7a3

Please sign in to comment.