snnib.brian2_utils.get_spike_monitor

snnib.brian2_utils.get_spike_monitor(net: Network, group: NeuronGroup) SpikeMonitor[source]

returns the SpikeMonitor associated to group if it exists

  • returns only the first found SpikeMonitor

  • returns None if no SpikeMonitor was found

Parameters
  • net
    • brian2.Network

    • network to hosting group

  • group
    • brian2.NeuronGroup

    • neuron group to get the SpikeMonitor of

Raises

Returns
  • obj
    • SpikeMonitor

    • extracted SpikeMonitor

    • None if no SpikeMonitor was found

Dependencies
  • brian2

  • logging