text: SpikeSource class¶
  (Shortest import:
  from brian2 import SpikeSource)
  - class
  brian2.core.spikesource.
  SpikeSource[source]¶
  A source of spikes.
  An object that can be used as a source of spikes for objects such as
  SpikeMonitor,
  Synapses, etc.
  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
  len(obj)-1.
  - An attribute
  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.
  - A
  clockattribute, this will be used as the default clock for objects with this as a source.
  spikes¶
  An array of ints, each from 0 to
  len(obj)-1with no repeats (but possibly not in sorted order). Updated each time step.