SNN.raster([network.pop...], [4s, 15s]) breaks so replace with:
SNN.raster(network.pop, [4s, 15s])
Then filter_populations statement is broken
julia> include("bistable_network_with_stimulus.jl")
[ Info: ================
[ Info: Model: IrISN0fVSx
[ Info: ----------------
[ Info: Populations:
[ Info: AdEx : AdEx: AdExParameter
[ Info: IF : IF: IFParameter
[ Info: AdEx : AdEx: AdExParameter
[ Info: IF : IF: IFParameter
[ Info: ----------------
[ Info: Synapses:
[ Info: AdEx -> IF.he : no_STDPParameter
[ Info: AdEx -> IF.he : no_STDPParameter
[ Info: AdEx -> AdEx.he <-> norm: sub_1_norm: no_STDPParameter
[ Info: AdEx -> IF.he : no_STDPParameter
[ Info: IF -> AdEx.hi : iSTDPParameterRate
[ Info: IF -> IF.hi : no_STDPParameter
[ Info: AdEx -> AdEx.he <-> norm: sub_2_norm: no_STDPParameter
[ Info: AdEx -> IF.he : no_STDPParameter
[ Info: IF -> AdEx.hi : iSTDPParameterRate
[ Info: IF -> IF.hi : no_STDPParameter
[ Info: ----------------
[ Info: Stimuli:
[ Info: Poisson -> AdEx.soma : PoissonStimulus
[ Info: Poisson -> AdEx.soma : PoissonStimulus
[ Info: Poisson -> AdEx.soma : PoissonStimulus
[ Info: Poisson -> AdEx.soma : PoissonStimulus
[ Info: ================
100.0%┣██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████┫ 40.0k/40.0k [00:05<00:00, 8.7kit/s]
100.0%┣███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████┫ 120.0k/120.0k [00:06<00:00, 20.5kit/s]
ERROR: LoadError: BoundsError: attempt to access 4-element Vector{SpikingNeuralNetworks.AbstractGeneralizedIF} at index [3]
Stacktrace:
[1] #215
@ ./none:0 [inlined]
[2] iterate
@ ./generator.jl:48 [inlined]
[3] collect_to!(dest::Vector{Any}, itr::Base.Generator{LinearIndices{1, Tuple{Base.OneTo{Int64}}}, SpikingNeuralNetworks.var"#215#217"}, offs::Int64, st::Int64)
@ Base ./array.jl:838
[4] collect_to!(dest::Vector{MemoryRef{…}}, itr::Base.Generator{LinearIndices{…}, SpikingNeuralNetworks.var"#215#217"}, offs::Int64, st::Int64)
@ Base ./array.jl:846
[5] collect_to_with_first!(dest::Vector{…}, v1::MemoryRef{…}, itr::Base.Generator{…}, st::Int64)
@ Base ./array.jl:816
[6] collect(itr::Base.Generator{LinearIndices{1, Tuple{Base.OneTo{Int64}}}, SpikingNeuralNetworks.var"#215#217"})
@ Base ./array.jl:790
[7] raster(P::Vector{SpikingNeuralNetworks.AbstractGeneralizedIF}, t::Vector{Float64}, dt::Float64; populations::Nothing, names::Nothing, kwargs::@kwargs{})
@ SpikingNeuralNetworks ~/git/SpikingNeuralNetworks.jl/src/plot.jl:51
[8] raster
@ ~/git/SpikingNeuralNetworks.jl/src/plot.jl:44 [inlined]
[9] raster(P::Vector{SpikingNeuralNetworks.AbstractGeneralizedIF}, t::Vector{Float64})
@ SpikingNeuralNetworks ~/git/SpikingNeuralNetworks.jl/src/plot.jl:44
[10] top-level scope
@ ~/git/SNNExamples/scripts/bistable_network_with_stimulus.jl:103
[11] include(fname::String)
@ Main ./sysimg.jl:38
[12] top-level scope
@ REPL[2]:1
in expression starting at /home/russell/git/SNNExamples/scripts/bistable_network_with_stimulus.jl:103
Some type information was truncated. Use show(err) to see complete types.
████████████████████████████████████████████┫ 120.0k/120.0k [00:07<00:00, 18.1kit/s]
ERROR: LoadError: MethodError: objects of type Symbol are not callable
The object of type Symbol exists, but no method is defined for this combination of argument types when trying to treat it as a callable object.
Stacktrace:
[1] filter_populations(P::@NamedTuple{sub_1_E::AdEx{…}, sub_1_I::IF{…}, sub_2_E::AdEx{…}, sub_2_I::IF{…}}, condition::Symbol)
@ SpikingNeuralNetworks ~/git/SpikingNeuralNetworks.jl/src/populations.jl:44
[2] top-level scope
@ ~/git/SNNExamples/scripts/bistable_network_with_stimulus.jl:109
[3] include(fname::String)
@ Main ./sysimg.jl:38
[4] top-level scope
@ REPL[5]:1
in expression starting at /home/russell/git/SNNExamples/scripts/bistable_network_with_stimulus.jl:109
Some type information was truncated. Use show(err) to see complete types.
SNN.raster([network.pop...], [4s, 15s]) breaks so replace with:
SNN.raster(network.pop, [4s, 15s])
Then
filter_populationsstatement is brokenjulia> include("bistable_network_with_stimulus.jl")
[ Info: ================
[ Info: Model: IrISN0fVSx
[ Info: ----------------
[ Info: Populations:
[ Info: AdEx : AdEx: AdExParameter
[ Info: IF : IF: IFParameter
[ Info: AdEx : AdEx: AdExParameter
[ Info: IF : IF: IFParameter
[ Info: ----------------
[ Info: Synapses:
[ Info: AdEx -> IF.he : no_STDPParameter
[ Info: AdEx -> IF.he : no_STDPParameter
[ Info: AdEx -> AdEx.he <-> norm: sub_1_norm: no_STDPParameter
[ Info: AdEx -> IF.he : no_STDPParameter
[ Info: IF -> AdEx.hi : iSTDPParameterRate
[ Info: IF -> IF.hi : no_STDPParameter
[ Info: AdEx -> AdEx.he <-> norm: sub_2_norm: no_STDPParameter
[ Info: AdEx -> IF.he : no_STDPParameter
[ Info: IF -> AdEx.hi : iSTDPParameterRate
[ Info: IF -> IF.hi : no_STDPParameter
[ Info: ----------------
[ Info: Stimuli:
[ Info: Poisson -> AdEx.soma : PoissonStimulus
[ Info: Poisson -> AdEx.soma : PoissonStimulus
[ Info: Poisson -> AdEx.soma : PoissonStimulus
[ Info: Poisson -> AdEx.soma : PoissonStimulus
[ Info: ================
100.0%┣██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████┫ 40.0k/40.0k [00:05<00:00, 8.7kit/s]
100.0%┣███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████┫ 120.0k/120.0k [00:06<00:00, 20.5kit/s]
ERROR: LoadError: BoundsError: attempt to access 4-element Vector{SpikingNeuralNetworks.AbstractGeneralizedIF} at index [3]
Stacktrace:
[1] #215
@ ./none:0 [inlined]
[2] iterate
@ ./generator.jl:48 [inlined]
[3] collect_to!(dest::Vector{Any}, itr::Base.Generator{LinearIndices{1, Tuple{Base.OneTo{Int64}}}, SpikingNeuralNetworks.var"#215#217"}, offs::Int64, st::Int64)
@ Base ./array.jl:838
[4] collect_to!(dest::Vector{MemoryRef{…}}, itr::Base.Generator{LinearIndices{…}, SpikingNeuralNetworks.var"#215#217"}, offs::Int64, st::Int64)
@ Base ./array.jl:846
[5] collect_to_with_first!(dest::Vector{…}, v1::MemoryRef{…}, itr::Base.Generator{…}, st::Int64)
@ Base ./array.jl:816
[6] collect(itr::Base.Generator{LinearIndices{1, Tuple{Base.OneTo{Int64}}}, SpikingNeuralNetworks.var"#215#217"})
@ Base ./array.jl:790
[7] raster(P::Vector{SpikingNeuralNetworks.AbstractGeneralizedIF}, t::Vector{Float64}, dt::Float64; populations::Nothing, names::Nothing, kwargs::@kwargs{})
@ SpikingNeuralNetworks ~/git/SpikingNeuralNetworks.jl/src/plot.jl:51
[8] raster
@ ~/git/SpikingNeuralNetworks.jl/src/plot.jl:44 [inlined]
[9] raster(P::Vector{SpikingNeuralNetworks.AbstractGeneralizedIF}, t::Vector{Float64})
@ SpikingNeuralNetworks ~/git/SpikingNeuralNetworks.jl/src/plot.jl:44
[10] top-level scope
@ ~/git/SNNExamples/scripts/bistable_network_with_stimulus.jl:103
[11] include(fname::String)
@ Main ./sysimg.jl:38
[12] top-level scope
@ REPL[2]:1
in expression starting at /home/russell/git/SNNExamples/scripts/bistable_network_with_stimulus.jl:103
Some type information was truncated. Use
show(err)to see complete types.████████████████████████████████████████████┫ 120.0k/120.0k [00:07<00:00, 18.1kit/s]
ERROR: LoadError: MethodError: objects of type Symbol are not callable
The object of type
Symbolexists, but no method is defined for this combination of argument types when trying to treat it as a callable object.Stacktrace:
[1] filter_populations(P::@NamedTuple{sub_1_E::AdEx{…}, sub_1_I::IF{…}, sub_2_E::AdEx{…}, sub_2_I::IF{…}}, condition::Symbol)
@ SpikingNeuralNetworks ~/git/SpikingNeuralNetworks.jl/src/populations.jl:44
[2] top-level scope
@ ~/git/SNNExamples/scripts/bistable_network_with_stimulus.jl:109
[3] include(fname::String)
@ Main ./sysimg.jl:38
[4] top-level scope
@ REPL[5]:1
in expression starting at /home/russell/git/SNNExamples/scripts/bistable_network_with_stimulus.jl:109
Some type information was truncated. Use
show(err)to see complete types.