spynnaker package

Subpackages

Submodules

spynnaker.gsyn_tools module

spynnaker.gsyn_tools.check_gsyn(gsyn1, gsyn2)[source]

Compare two arrays of conductances. For testing.

Parameters:
  • gsyn1 – An array of conductances.
  • gsyn2 – An array of conductances.
Raises:

Exception – If the arrays differ.

spynnaker.gsyn_tools.check_path_gysn(path, n_neurons, runtime, gsyn)[source]

Compare an arrays of conductances with baseline data from a file. For testing.

Parameters:
  • path – A file path.
  • n_neurons – The number of neurons that produced the data.
  • runtime – The length of time that the generated data represents.
  • gsyn – An array of conductances.
Raises:

Exception – If the arrays differ.

spynnaker.gsyn_tools.check_sister_gysn(sister, n_neurons, runtime, gsyn)[source]

Compare an arrays of conductances with baseline data from a file next to a specified module. For testing.

Parameters:
  • sister – A module. The file read from will be gsyn.data adjacent to this module.
  • n_neurons – The number of neurons that produced the data.
  • runtime – The length of time that the generated data represents.
  • gsyn – An array of conductances.
Raises:

Exception – If the arrays differ.

spynnaker.plot_utils module

spynnaker.plot_utils.heat_plot(data_sets, ylabel=None, title=None)[source]

Build a heatmap plot or plots.

Parameters:
  • data_sets (ndarray or list(ndarray)) – Numpy array of data, or list of numpy arrays of data
  • ylabel (str or None) – The label for the Y axis
  • title (str or None) – The title for the plot
spynnaker.plot_utils.line_plot(data_sets, title=None)[source]

Build a line plot or plots.

Parameters:
  • data_sets (ndarray or list(ndarray)) – Numpy array of data, or list of numpy arrays of data
  • title (str or None) – The title for the plot
spynnaker.plot_utils.plot_spikes(spikes, title='spikes')[source]

Build a spike plot or plots.

Parameters:
  • spikes (ndarray or list(ndarray)) – Numpy array of spikes, or list of numpy arrays of spikes
  • title (str) – The title for the plot

spynnaker.spike_checker module

spynnaker.spike_checker.synfire_multiple_lines_spike_checker(spikes, nNeurons, lines, wrap_around=True)[source]

Checks that there are the expected number of spike lines

Parameters:
  • spikes (ndarray or list(ndarray)) – The spikes
  • nNeurons (int) – The number of neurons.
  • lines (int) – Expected number of lines
  • wrap_around (bool) – If True the lines will wrap around when reaching the last neuron.
Raises:

Exception – If there is a problem with the data

spynnaker.spike_checker.synfire_spike_checker(spikes, nNeurons)[source]
Parameters:
  • spikes (ndarray or list(ndarray)) – The spike data to check.
  • nNeurons (int) – The number of neurons.
Raises:

Exception – If there is a problem with the data

Module contents