from brian2 import SpikeSource)
A source of spikes.
The defining properties of
SpikeSourceare that it should have:
A length that can be extracted with
len(obj), where the maximum spike index possible is
spikes, an array of ints each from 0 to
len(obj)-1with no repeats (but possibly not in sorted order). This should be updated each time step.
clockattribute, this will be used as the default clock for objects with this as a source.
An array of ints, each from 0 to
len(obj)-1with no repeats (but possibly not in sorted order). Updated each time step.
The clock on which the spikes will be updated.