Some problems about NEST to GeNN. #532
Unanswered
ChenLumen
asked this question in
GeNN questions
Replies: 2 comments 7 replies
-
The |
Beta Was this translation helpful? Give feedback.
1 reply
-
Ahh yes there is a built in spike_times = [[10, 20], [5, 15]]
# Count spikes each neuron should emit
spike_counts = [len(n) for n in spike_times ]
# Get start and end indices of each spike sources section
end_spike = np.cumsum(spike_counts)
start_spike = np.empty_like(end_spike)
start_spike[0] = 0
start_spike[1:] = end_spike[0:-1]
....
ssa = model.add_neuron_population("SSA", 2, "SpikeSourceArray", {},
{"startSpike": start_spike, "endSpike": end_spike})
# Set the spike times
ssa.set_extra_global_param("spikeTimes", np.concatenate(spike_times)) |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, recently I wanted to simulate my model over and over again with GeNN. But I didn't found about how to reset the network. For example, in NEST we can use nest.ResetNetwork() and nest.SetKernel Status() to reset network. And someone can tell me how to achieve this in GeNN? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions