From be27e33ec64adadf31c38cbc136893ec711cb1a8 Mon Sep 17 00:00:00 2001 From: anandpathak31 Date: Mon, 30 Oct 2023 17:33:00 -0400 Subject: [PATCH 1/2] define neuron-str connection --- src/blox/connections.jl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/blox/connections.jl b/src/blox/connections.jl index 89515602..b5c5eb82 100644 --- a/src/blox/connections.jl +++ b/src/blox/connections.jl @@ -260,6 +260,20 @@ function (bc::BloxConnector)( end end +function (bc::BloxConnector)( + neuron::HHNeuronExciBlox, + str::Striatum; + kwargs... +) + neurons_in = get_inh_neurons(str) + neurons_out = neuron + + for neuron_postsyn in neurons_in + bc(neuron_out, neuron_postsyn; kwargs...) + end + +end + function (bc::BloxConnector)( neuron::HHNeuronExciBlox, discr::Union{Matrisome, Striosome}; From 6c391a10d3d6cde80e9df1f4a81fe2d56661ddf2 Mon Sep 17 00:00:00 2001 From: anandpathak31 Date: Mon, 30 Oct 2023 23:29:01 -0400 Subject: [PATCH 2/2] fix error --- src/blox/connections.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blox/connections.jl b/src/blox/connections.jl index b5c5eb82..a75f162f 100644 --- a/src/blox/connections.jl +++ b/src/blox/connections.jl @@ -266,7 +266,7 @@ function (bc::BloxConnector)( kwargs... ) neurons_in = get_inh_neurons(str) - neurons_out = neuron + neuron_out = neuron for neuron_postsyn in neurons_in bc(neuron_out, neuron_postsyn; kwargs...)