Created
May 17, 2023 04:55
-
-
Save russelljjarvis/7a95b19693d6fdeb385f056d976811ef to your computer and use it in GitHub Desktop.
changed_main.jl_sim!_function.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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