Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save russelljjarvis/7a95b19693d6fdeb385f056d976811ef to your computer and use it in GitHub Desktop.
Save russelljjarvis/7a95b19693d6fdeb385f056d976811ef to your computer and use it in GitHub Desktop.
changed_main.jl_sim!_function.jl
function sim!(p,dt,verbose=true;current_stim=0.0)
for (ind,p) in enumerate(P.post_synaptic_targets)
p.fire = Vector{Bool}([false for i in 1:length(p.fire)])
integrate_neuron!(p.N, p.v, dt, p.ge, p.gi, p.fire, p.u, p.tr)
record!(p)
pre_synaptic_cell_fire_map = copy(p.fire)
g = zeros(sizeof(pre_fire_map))
forwards_euler_weights!(p,W,pre_synaptic_cell_fire_map,g)
pre_synaptic_cell_fire_map = Vector{Bool}([false for i in 1:length(pre_fire_map)])
#record!()
end
end
# aspirational imports
#using KernelAbstractions
#using KernelAbstractions: @atomic, @atomicswap, @atomicreplace
#using StaticArrays
#using LoopVectorization
#using Unitful
#import Unitful: V, s, ms, μs, A, Hz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment