spynnaker.pyNN.connections package¶
Submodules¶
spynnaker.pyNN.connections.ethernet_command_connection module¶
spynnaker.pyNN.connections.ethernet_control_connection module¶
-
class
spynnaker.pyNN.connections.ethernet_control_connection.
EthernetControlConnection
(translator, local_host=None, local_port=None)[source]¶ Bases:
spinnman.connections.udp_packet_connections.eieio_connection.EIEIOConnection
A connection that can translate Ethernet control messages received from a Population
Parameters: - translator – The translator of multicast to control commands
- local_host – The optional host to listen on
- local_port – The optional port to listen on
spynnaker.pyNN.connections.spynnaker_live_spikes_connection module¶
-
class
spynnaker.pyNN.connections.spynnaker_live_spikes_connection.
SpynnakerLiveSpikesConnection
(receive_labels=None, send_labels=None, local_host=None, local_port=19999, live_packet_gather_label='LiveSpikeReceiver')[source]¶ Bases:
spinn_front_end_common.utilities.connections.live_event_connection.LiveEventConnection
A connection for receiving and sending live spikes from and to SpiNNaker
Parameters: - receive_labels (iterable of str) – Labels of population from which live spikes will be received.
- send_labels (iterable of str) – Labels of population to which live spikes will be sent
- local_host (str) – Optional specification of the local hostname or IP address of the interface to listen on
- local_port (int) – Optional specification of the local port to listen on. Must match the port that the toolchain will send the notification on (19999 by default)
-
send_spike
(label, neuron_id, send_full_keys=False)[source]¶ Send a spike from a single neuron
Parameters: - label (str) – The label of the population from which the spike will originate
- neuron_id (int) – The ID of the neuron sending a spike
- send_full_keys (bool) – Determines whether to send full 32-bit keys, getting the key for each neuron from the database, or whether to send 16-bit neuron IDs directly
-
send_spikes
(label, neuron_ids, send_full_keys=False)[source]¶ Send a number of spikes
Parameters: - label (str) – The label of the population from which the spikes will originate
- neuron_ids (list(int)) – array-like of neuron IDs sending spikes
- send_full_keys (bool) – Determines whether to send full 32-bit keys, getting the key for each neuron from the database, or whether to send 16-bit neuron IDs directly