spynnaker package¶
Subpackages¶
- spynnaker.pyNN package
- Subpackages
- spynnaker.pyNN.connections package
- spynnaker.pyNN.data package
- spynnaker.pyNN.external_devices package
- spynnaker.pyNN.external_devices_models package
- spynnaker.pyNN.extra_algorithms package
- spynnaker.pyNN.extra_models package
- spynnaker.pyNN.model_binaries package
- spynnaker.pyNN.models package
- spynnaker.pyNN.protocols package
- spynnaker.pyNN.utilities package
- Subpackages
- Submodules
- spynnaker.pyNN.utilities.bit_field_utilities module
- spynnaker.pyNN.utilities.buffer_data_type module
- spynnaker.pyNN.utilities.constants module
- spynnaker.pyNN.utilities.data_population module
- spynnaker.pyNN.utilities.extracted_data module
- spynnaker.pyNN.utilities.fake_HBP_Portal_machine_provider module
- spynnaker.pyNN.utilities.neo_buffer_database module
- spynnaker.pyNN.utilities.neo_compare module
- spynnaker.pyNN.utilities.neo_convertor module
- spynnaker.pyNN.utilities.neo_csv module
- spynnaker.pyNN.utilities.running_stats module
- spynnaker.pyNN.utilities.struct module
- spynnaker.pyNN.utilities.utility_calls module
- Module contents
- Submodules
- spynnaker.pyNN.config_setup module
- spynnaker.pyNN.exceptions module
- spynnaker.pyNN.random_distribution module
- spynnaker.pyNN.setup_pynn module
- spynnaker.pyNN.spinnaker module
- spynnaker.pyNN.spynnaker_external_device_plugin_manager module
SpynnakerExternalDevicePluginManager
SpynnakerExternalDevicePluginManager.activate_live_output_for()
SpynnakerExternalDevicePluginManager.activate_live_output_to()
SpynnakerExternalDevicePluginManager.add_application_vertex()
SpynnakerExternalDevicePluginManager.add_database_socket_address()
SpynnakerExternalDevicePluginManager.add_edge()
SpynnakerExternalDevicePluginManager.add_poisson_live_rate_control()
SpynnakerExternalDevicePluginManager.update_live_packet_gather_tracker()
- Module contents
- 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:
ValueError – 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:
ValueError – 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:
ValueError – 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.
spynnaker.spike_checker module¶
spynnaker.spynnaker_plotting module¶
Plotting tools to be used together with https://github.com/NeuralEnsemble/PyNN/blob/master/pyNN/utility/plotting.py
- class spynnaker.spynnaker_plotting.SpynnakerPanel(*data, **options)[source]¶
Bases:
object
Represents a single panel in a multi-panel figure.
Compatible with
pyNN.utility.plotting.Frame
and can be mixed withpyNN.utility.plotting.Panel
Unlike
pyNN.utility.plotting.Panel
, Spikes are plotted faster, other data is plotted as a heatmap.A panel is a Matplotlib Axes or Subplot instance. A data item may be an
AnalogSignal
, or a list ofSpikeTrain
s. The Panel will automatically choose an appropriate representation. Multiple data items may be plotted in the same panel.Valid options are any valid Matplotlib formatting options that should be applied to the Axes/Subplot, plus in addition:
- data_labels:
a list of strings of the same length as the number of data items.
- line_properties:
a list of dictionaries containing Matplotlib formatting options, of the same length as the number of data items.
Whole Neo Objects can be passed in as long as they contain a single Segment/run and only contain one type of data. Whole Segments can be passed in only if they only contain one type of data.
- Parameters:
data (list(SpikeTrain) or AnalogSignal or ndarray or Block or Segment) – One or more data series to be plotted.
options – Any additional information.
- spynnaker.spynnaker_plotting.heat_plot_neo(axes, signal_array, label='', **options)[source]¶
Plots neurons, times and values into a heatmap.
- Parameters:
axes (Axes) – An Axes in a matplotlib figure
signal_array (AnalogSignal) – Neo Signal array object
label (str) – Label for the graph
options – plotting options
- spynnaker.spynnaker_plotting.heat_plot_numpy(axes, data, label='', **options)[source]¶
Plots neurons, times and values into a heatmap.
- spynnaker.spynnaker_plotting.plot_segment(axes, segment, label='', **options)[source]¶
Plots a segment into a plot of spikes or a heatmap.
If there is more than ode type of Data in the segment options must include the name of the data to plot
Note
Method signature defined by PyNN plotting. This allows mixing of this plotting tool and PyNN’s
- spynnaker.spynnaker_plotting.plot_spikes_numpy(axes, spikes, label='', **options)[source]¶
Plot all spikes.
- spynnaker.spynnaker_plotting.plot_spiketrains(axes, spiketrains, label='', **options)[source]¶
Plot all spike trains in a Segment in a raster plot.
- Parameters:
axes (Axes) – An Axes in a matplotlib figure
spiketrains (list(SpikeTrain)) – List of spike times
label (str) – Label for the graph
options – plotting options