Hello,
I am trying to set various spiking times for the input population (and no spikes at all for some neurons) and encounter this problem.
If I try to use tset method I get "IndexError: list index out of range".
If I try to directly put spike_times into Population, I get "TypeError: an integer is required".
My code snippet:
n_stimulus = 3
spike_times = np.array([[1,2,3], [4, 5, 6], []])
print "rows:", len(spike_times)
print "cols:", len(spike_times[0])
assert len(spike_times) == n_stimulus, "Input spikes must match neurons!"
stimuli_cells = sim.Population(n_stimulus, sim.SpikeSourceArray, {'spike_times': spike_times})
# or:
stimuli_cells = sim.Population(n_stimulus, sim.SpikeSourceArray, {'spike_times': []})
stimuli_cells.tset("spike_times", spike_times)
Does any of you know how to solve that problem?
Many thanks in advance!
Rainer