Miscellaneous Utilities

fugu.utils.misc.CalculateSpikeTimes(circuit, main_key='timestep')

Function that determines the initial spikes for the input layer of a fugu circuit.

Parameters:
  • circuit (+ circuit - Fugu)

  • key (+ main_key - Whether to use timestep or neuron name as the dictionary)

Returns:

  • Dictionary of when certain neurons spike (keyed by either timestep or neuron name)

Exceptions:
  • Raises ValueError if main_key is not ‘timestep’ or ‘neuron_name’