I am trying to run the trained simulation from the following neuroscience paper (Distributing task-related neural activity across a cortical network through task-independent connections and my script currently looks like this
using JLD
include("load_files.jl")
include("runtest.jl")
p, w0Index, w0Weights, nc0, wpIndexIn, wpIndexOut, wpIndexConvert, wpWeightIn, wpWeightOut, ncpIn, ncpOut, stim, almOrd, matchedCells, ffwdRate, wpWeightFfwd = load_files("/Users/luol3/Downloads/distributedActivity-main/data_network/", "right")
xtotal, xebal, xibal, xplastic, times, ns, vtotal_exccell, vtotal_inhcell, vebal_exccell, vibal_exccell, vebal_inhcell, vibal_inhcell, vplastic_exccell, vplastic_inhcell = runtest(p,w0Index,w0Weights,nc0,wpIndexOut,wpWeightOut,ncpOut,stim,ffwdRate,wpWeightFfwd)
Both loadfiles and runtest are from the following github repository: GitHub - SpikingNetwork/distributedActivity.
When I run loadfiles, I get the following warning message
Warning: type paramType not present in workspace; reconstructing
└ @ JLD ~/.julia/packages/JLD/S6t6A/src/jld_types.jl:697
and when the script runs the function runtest, I get the following error message
33ERROR: LoadError: MethodError: no method matching isless(::Float64, ::Matrix{Float64})
Closest candidates are:
isless(::T, ::T) where T<:Union{Float16, Float32, Float64} at float.jl:424
isless(::Real, ::DualNumbers.Dual{<:Real}) at ~/.julia/packages/DualNumbers/5knFX/src/dual.jl:182
isless(::AbstractFloat, ::AbstractFloat) at operators.jl:184
...
Stacktrace:
[1] <(x::Float64, y::Matrix{Float64})
@ Base ./operators.jl:356
[2] runtest(p::JLD.var"##paramType#312", w0Index::Matrix{Int64}, w0Weights::Matrix{Float64}, nc0::Vector{Int64}, wpIndexOut::Matrix{Float64}, wpWeightOut::Matrix{Float64}, ncpOut::Vector{Int64}, stim::Matrix{Float64}, ffwdRate::Vector{Matrix{Float64}}, wpWeightFfwd::Vector{Matrix{Float64}})
@ Main ~/Downloads/distributedActivity-main/runtest.jl:178
[3] top-level scope
@ ~/Downloads/distributedActivity-main/trainedrightactivity.jl:5
[4] include(fname::String)
@ Base.MainInclude ./client.jl:476
[5] top-level scope
@ REPL[2]:1
in expression starting at /Users/luol3/Downloads/distributedActivity-main/trainedrightactivity.jl:5
Does anyone have any ideas on what I should do? I have never coded in Julia before.