spynnaker.pyNN package¶
Subpackages¶
- spynnaker.pyNN.connections package
- Module contents
EthernetCommandConnectionEthernetControlConnectionSPIFLiveSpikesConnectionSpynnakerLiveSpikesConnectionSpynnakerPoissonControlConnectionSpynnakerPoissonControlConnection.add_init_callback()SpynnakerPoissonControlConnection.add_pause_stop_callback()SpynnakerPoissonControlConnection.add_poisson_label()SpynnakerPoissonControlConnection.add_receive_callback()SpynnakerPoissonControlConnection.add_receive_no_time_callback()SpynnakerPoissonControlConnection.add_start_callback()SpynnakerPoissonControlConnection.add_start_resume_callback()SpynnakerPoissonControlConnection.set_rate()SpynnakerPoissonControlConnection.set_rates()
- Module contents
- spynnaker.pyNN.data package
- Submodules
- spynnaker.pyNN.data.spynnaker_data_writer module
- Module contents
SpynnakerDataViewSpynnakerDataView.add_population()SpynnakerDataView.add_projection()SpynnakerDataView.get_min_delay()SpynnakerDataView.get_n_populations()SpynnakerDataView.get_n_projections()SpynnakerDataView.get_sim_name()SpynnakerDataView.has_min_delay()SpynnakerDataView.iterate_populations()SpynnakerDataView.iterate_projections()
- spynnaker.pyNN.external_devices package
- spynnaker.pyNN.external_devices_models package
- Subpackages
- Submodules
- spynnaker.pyNN.external_devices_models.external_device_lif_control_vertex module
ExternalDeviceLifControlVertexExternalDeviceLifControlVertex.dependent_vertices()ExternalDeviceLifControlVertex.edge_partition_identifiers_for_dependent_vertex()ExternalDeviceLifControlVertex.get_atom_key_map()ExternalDeviceLifControlVertex.get_external_devices()ExternalDeviceLifControlVertex.get_fixed_key_and_mask()ExternalDeviceLifControlVertex.get_message_translator()ExternalDeviceLifControlVertex.get_outgoing_partition_ids()
- spynnaker.pyNN.external_devices_models.spif_devices module
N_FIELDSN_FILTERSN_INPUTSN_PIPESSPIFRegisterSPIFRegister.CONFIG_PKT_CNTSPIFRegister.DIST_KEY_BASESPIFRegister.DIST_MASK_BASESPIFRegister.DIST_SHIFT_BASESPIFRegister.DROPPED_PKT_CNTSPIFRegister.FL_MASK_BASESPIFRegister.FL_VALUE_BASESPIFRegister.IN_PERIPH_PKT_CNTSPIFRegister.IR_KEY_BASESPIFRegister.IR_MASK_BASESPIFRegister.IR_ROUTE_BASESPIFRegister.MP_FLD_LIMIT_BASESPIFRegister.MP_FLD_MASK_BASESPIFRegister.MP_FLD_SHIFT_BASESPIFRegister.MP_KEY_BASESPIFRegister.OUT_PERIPH_PKT_CNTSPIFRegister.REPLY_KEYSPIFRegister.cmd()SPIFRegister.delayed_command()
SPIF_FPGA_IDSPIF_INPUT_FPGA_LINKSSPIF_OUTPUT_FPGA_LINKSpiNNFPGARegisterSpiNNFPGARegister.LC_KEYSpiNNFPGARegister.LC_MASKSpiNNFPGARegister.P_KEYSpiNNFPGARegister.P_MASKSpiNNFPGARegister.RC_KEYSpiNNFPGARegister.RC_MASKSpiNNFPGARegister.STARTSpiNNFPGARegister.STOPSpiNNFPGARegister.XP_KEY_BASESpiNNFPGARegister.XP_MASK_BASESpiNNFPGARegister.cmd()SpiNNFPGARegister.delayed_command()
set_distiller_key()set_distiller_mask()set_distiller_mask_delayed()set_distiller_shift()set_field_limit()set_field_mask()set_field_shift()set_filter_mask()set_filter_value()set_input_key()set_input_mask()set_input_route()set_mapper_key()set_xp_key()set_xp_key_delayed()set_xp_mask()set_xp_mask_delayed()
- Module contents
AbstractEthernetControllerAbstractEthernetSensorAbstractEthernetTranslatorAbstractMulticastControllableDeviceAbstractMulticastControllableDevice.device_control_first_send_timestepAbstractMulticastControllableDevice.device_control_keyAbstractMulticastControllableDevice.device_control_max_valueAbstractMulticastControllableDevice.device_control_min_valueAbstractMulticastControllableDevice.device_control_partition_idAbstractMulticastControllableDevice.device_control_scaling_factorAbstractMulticastControllableDevice.device_control_send_typeAbstractMulticastControllableDevice.device_control_timesteps_between_sendingAbstractMulticastControllableDevice.device_control_uses_payload
ArbitraryFPGADeviceExternalDeviceLifControlExternalFPGARetinaDeviceExternalFPGARetinaDevice.DOWN_POLARITYExternalFPGARetinaDevice.MERGED_POLARITYExternalFPGARetinaDevice.MODE_128ExternalFPGARetinaDevice.MODE_16ExternalFPGARetinaDevice.MODE_32ExternalFPGARetinaDevice.MODE_64ExternalFPGARetinaDevice.UP_POLARITYExternalFPGARetinaDevice.get_fixed_key_and_mask()ExternalFPGARetinaDevice.get_n_neurons()ExternalFPGARetinaDevice.pause_stop_commandsExternalFPGARetinaDevice.start_resume_commandsExternalFPGARetinaDevice.timed_commands
ICUBRetinaDeviceMachineMunichMotorDeviceMachineMunichMotorDevice.INPUT_BUFFER_FULL_NAMEMachineMunichMotorDevice.MOTOR_PARTITION_IDMachineMunichMotorDevice.generate_data_specification()MachineMunichMotorDevice.get_binary_file_name()MachineMunichMotorDevice.get_binary_start_type()MachineMunichMotorDevice.get_n_keys_for_partition()MachineMunichMotorDevice.parse_extra_provenance_items()MachineMunichMotorDevice.reserve_memory_regions()MachineMunichMotorDevice.sdram_required
MunichMotorDeviceMunichRetinaDeviceMunichRetinaDevice.DOWN_POLARITYMunichRetinaDevice.LEFT_RETINAMunichRetinaDevice.MERGED_POLARITYMunichRetinaDevice.RIGHT_RETINAMunichRetinaDevice.UP_POLARITYMunichRetinaDevice.get_fixed_key_and_mask()MunichRetinaDevice.pause_stop_commandsMunichRetinaDevice.start_resume_commandsMunichRetinaDevice.timed_commands
SPIFInputDeviceSPIFInputDevice.INPUT_MASKSPIFInputDevice.get_atom_key_map()SPIFInputDevice.get_fixed_key_and_mask()SPIFInputDevice.get_incoming_slice_for_link()SPIFInputDevice.get_machine_fixed_key_and_mask()SPIFInputDevice.pause_stop_commandsSPIFInputDevice.start_resume_commandsSPIFInputDevice.timed_commands
SPIFOutputDeviceSPIFRetinaDeviceSPIFRetinaDevice.X_MASKSPIFRetinaDevice.X_PER_ROWSPIFRetinaDevice.Y_MASKSPIFRetinaDevice.get_atom_key_map()SPIFRetinaDevice.get_fixed_key_and_mask()SPIFRetinaDevice.get_incoming_slice_for_link()SPIFRetinaDevice.get_machine_fixed_key_and_mask()SPIFRetinaDevice.pause_stop_commandsSPIFRetinaDevice.start_resume_commandsSPIFRetinaDevice.timed_commands
SendTypeThresholdTypeMulticastDeviceControl
- spynnaker.pyNN.extra_algorithms package
- spynnaker.pyNN.extra_models package
- spynnaker.pyNN.model_binaries package
- spynnaker.pyNN.models package
- Subpackages
- spynnaker.pyNN.models.abstract_models package
- spynnaker.pyNN.models.common package
- spynnaker.pyNN.models.current_sources package
- spynnaker.pyNN.models.neural_projections package
- spynnaker.pyNN.models.neuron package
- Subpackages
- Submodules
- spynnaker.pyNN.models.neuron.generator_data module
- spynnaker.pyNN.models.neuron.master_pop_table module
- spynnaker.pyNN.models.neuron.neuron_data module
- spynnaker.pyNN.models.neuron.population_machine_common module
- spynnaker.pyNN.models.neuron.population_machine_synapses module
- spynnaker.pyNN.models.neuron.synapse_io module
- spynnaker.pyNN.models.neuron.synaptic_matrices module
- spynnaker.pyNN.models.neuron.synaptic_matrix_app module
- Module contents
- spynnaker.pyNN.models.populations package
- spynnaker.pyNN.models.spike_source package
- spynnaker.pyNN.models.utility_models package
- Submodules
- spynnaker.pyNN.models.abstract_pynn_model module
AbstractPyNNModelAbstractPyNNModel.absolute_max_atoms_per_coreAbstractPyNNModel.create_vertex()AbstractPyNNModel.default_population_parametersAbstractPyNNModel.describe()AbstractPyNNModel.get_model_max_atoms_per_dimension_per_core()AbstractPyNNModel.get_parameter_names()AbstractPyNNModel.has_parameter()AbstractPyNNModel.nameAbstractPyNNModel.reset_all()AbstractPyNNModel.set_model_max_atoms_per_dimension_per_core()AbstractPyNNModel.verify_may_set()
- spynnaker.pyNN.models.defaults module
- spynnaker.pyNN.models.projection module
- spynnaker.pyNN.models.recorder module
- Module contents
- Subpackages
- spynnaker.pyNN.protocols package
- Module contents
MUNICH_MODESMunichIoEthernetProtocolMunichIoEthernetProtocol.disable_motor()MunichIoEthernetProtocol.disable_retina()MunichIoEthernetProtocol.enable_motor()MunichIoEthernetProtocol.enable_retina()MunichIoEthernetProtocol.laser_active_time()MunichIoEthernetProtocol.laser_frequency()MunichIoEthernetProtocol.laser_total_period()MunichIoEthernetProtocol.led_back_active_time()MunichIoEthernetProtocol.led_frequency()MunichIoEthernetProtocol.led_front_active_time()MunichIoEthernetProtocol.led_total_period()MunichIoEthernetProtocol.motor_0_leaky_velocity()MunichIoEthernetProtocol.motor_0_permanent_velocity()MunichIoEthernetProtocol.motor_1_leaky_velocity()MunichIoEthernetProtocol.motor_1_permanent_velocity()MunichIoEthernetProtocol.set_retina_transmission()MunichIoEthernetProtocol.speaker_active_time()MunichIoEthernetProtocol.speaker_frequency()MunichIoEthernetProtocol.speaker_total_period()
MunichIoSpiNNakerLinkProtocolMunichIoSpiNNakerLinkProtocol.add_payload_logic_to_current_output()MunichIoSpiNNakerLinkProtocol.bias_values()MunichIoSpiNNakerLinkProtocol.configure_master_key()MunichIoSpiNNakerLinkProtocol.disable_retina()MunichIoSpiNNakerLinkProtocol.disable_retina_keyMunichIoSpiNNakerLinkProtocol.enable_disable_motor_keyMunichIoSpiNNakerLinkProtocol.generic_motor0_raw_output_leak_to_0()MunichIoSpiNNakerLinkProtocol.generic_motor0_raw_output_permanent()MunichIoSpiNNakerLinkProtocol.generic_motor1_raw_output_leak_to_0()MunichIoSpiNNakerLinkProtocol.generic_motor1_raw_output_permanent()MunichIoSpiNNakerLinkProtocol.generic_motor_disable()MunichIoSpiNNakerLinkProtocol.generic_motor_enable()MunichIoSpiNNakerLinkProtocol.generic_motor_total_period()MunichIoSpiNNakerLinkProtocol.instance_keyMunichIoSpiNNakerLinkProtocol.master_slave_set_master_clock_active()MunichIoSpiNNakerLinkProtocol.master_slave_set_master_clock_not_started()MunichIoSpiNNakerLinkProtocol.master_slave_set_slave()MunichIoSpiNNakerLinkProtocol.master_slave_use_internal_counter()MunichIoSpiNNakerLinkProtocol.modeMunichIoSpiNNakerLinkProtocol.poll_individual_sensor_continuously()MunichIoSpiNNakerLinkProtocol.poll_sensors_once()MunichIoSpiNNakerLinkProtocol.push_bot_laser_config_active_time()MunichIoSpiNNakerLinkProtocol.push_bot_laser_config_active_time_keyMunichIoSpiNNakerLinkProtocol.push_bot_laser_config_total_period()MunichIoSpiNNakerLinkProtocol.push_bot_laser_config_total_period_keyMunichIoSpiNNakerLinkProtocol.push_bot_laser_set_frequency()MunichIoSpiNNakerLinkProtocol.push_bot_laser_set_frequency_keyMunichIoSpiNNakerLinkProtocol.push_bot_led_back_active_time()MunichIoSpiNNakerLinkProtocol.push_bot_led_back_active_time_keyMunichIoSpiNNakerLinkProtocol.push_bot_led_front_active_time()MunichIoSpiNNakerLinkProtocol.push_bot_led_front_active_time_keyMunichIoSpiNNakerLinkProtocol.push_bot_led_set_frequency()MunichIoSpiNNakerLinkProtocol.push_bot_led_set_frequency_keyMunichIoSpiNNakerLinkProtocol.push_bot_led_total_period()MunichIoSpiNNakerLinkProtocol.push_bot_led_total_period_keyMunichIoSpiNNakerLinkProtocol.push_bot_motor_0_leaking_towards_zero()MunichIoSpiNNakerLinkProtocol.push_bot_motor_0_leaking_towards_zero_keyMunichIoSpiNNakerLinkProtocol.push_bot_motor_0_permanent()MunichIoSpiNNakerLinkProtocol.push_bot_motor_0_permanent_keyMunichIoSpiNNakerLinkProtocol.push_bot_motor_1_leaking_towards_zero()MunichIoSpiNNakerLinkProtocol.push_bot_motor_1_leaking_towards_zero_keyMunichIoSpiNNakerLinkProtocol.push_bot_motor_1_permanent()MunichIoSpiNNakerLinkProtocol.push_bot_motor_1_permanent_keyMunichIoSpiNNakerLinkProtocol.push_bot_speaker_config_active_time()MunichIoSpiNNakerLinkProtocol.push_bot_speaker_config_active_time_keyMunichIoSpiNNakerLinkProtocol.push_bot_speaker_config_total_period()MunichIoSpiNNakerLinkProtocol.push_bot_speaker_config_total_period_keyMunichIoSpiNNakerLinkProtocol.push_bot_speaker_set_melody()MunichIoSpiNNakerLinkProtocol.push_bot_speaker_set_melody_keyMunichIoSpiNNakerLinkProtocol.push_bot_speaker_set_tone()MunichIoSpiNNakerLinkProtocol.push_bot_speaker_set_tone_keyMunichIoSpiNNakerLinkProtocol.pwm_pin_output_timer_a_channel_0_ratio()MunichIoSpiNNakerLinkProtocol.pwm_pin_output_timer_a_channel_1_ratio()MunichIoSpiNNakerLinkProtocol.pwm_pin_output_timer_a_duration()MunichIoSpiNNakerLinkProtocol.pwm_pin_output_timer_b_channel_0_ratio()MunichIoSpiNNakerLinkProtocol.pwm_pin_output_timer_b_channel_1_ratio()MunichIoSpiNNakerLinkProtocol.pwm_pin_output_timer_b_duration()MunichIoSpiNNakerLinkProtocol.pwm_pin_output_timer_c_channel_0_ratio()MunichIoSpiNNakerLinkProtocol.pwm_pin_output_timer_c_channel_1_ratio()MunichIoSpiNNakerLinkProtocol.pwm_pin_output_timer_c_duration()MunichIoSpiNNakerLinkProtocol.query_state_of_io_lines()MunichIoSpiNNakerLinkProtocol.remove_payload_logic_to_current_output()MunichIoSpiNNakerLinkProtocol.reset_retina()MunichIoSpiNNakerLinkProtocol.sensor_transmission_key()MunichIoSpiNNakerLinkProtocol.sent_mode_command()MunichIoSpiNNakerLinkProtocol.set_mode()MunichIoSpiNNakerLinkProtocol.set_output_pattern_for_payload()MunichIoSpiNNakerLinkProtocol.set_payload_pins_to_high_impedance()MunichIoSpiNNakerLinkProtocol.set_retina_key()MunichIoSpiNNakerLinkProtocol.set_retina_key_keyMunichIoSpiNNakerLinkProtocol.set_retina_transmission()MunichIoSpiNNakerLinkProtocol.set_retina_transmission_keyMunichIoSpiNNakerLinkProtocol.turn_off_sensor_reporting()MunichIoSpiNNakerLinkProtocol.uart_id
RetinaKeyRetinaPayload
- Module contents
- 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
DataPopulationDataPopulation.describe()DataPopulation.find_units()DataPopulation.get_data()DataPopulation.get_spike_counts()DataPopulation.id_to_index()DataPopulation.index_to_id()DataPopulation.labelDataPopulation.local_sizeDataPopulation.mean_spike_count()DataPopulation.sizeDataPopulation.spinnaker_get_data()DataPopulation.write_data()
- spynnaker.pyNN.utilities.neo_buffer_database module
NeoBufferDatabaseNeoBufferDatabase.add_segment()NeoBufferDatabase.array_to_string()NeoBufferDatabase.clear_data()NeoBufferDatabase.csv_block_metadata()NeoBufferDatabase.csv_segment()NeoBufferDatabase.find_units()NeoBufferDatabase.get_empty_block()NeoBufferDatabase.get_full_block()NeoBufferDatabase.get_population()NeoBufferDatabase.get_population_metadata()NeoBufferDatabase.get_recording_populations()NeoBufferDatabase.get_recording_variables()NeoBufferDatabase.get_spike_counts()NeoBufferDatabase.has_population_metadata()NeoBufferDatabase.segement_db()NeoBufferDatabase.spinnaker_get_data()NeoBufferDatabase.string_to_array()NeoBufferDatabase.write_metadata()NeoBufferDatabase.write_segment_metadata()NeoBufferDatabase.write_t_stop()
- 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
check_directory_exists_and_create_if_not()check_rng()convert_param_to_numpy()convert_to()create_mars_kiss_seeds()get_maximum_probable_value()get_mean()get_minimum_probable_value()get_n_bits()get_neo_io()get_probability_within_range()get_probable_maximum_selected()get_probable_minimum_selected()get_standard_deviation()get_time_to_write_us()get_variance()high()low()read_in_data_from_file()read_spikes_from_file()report_non_spynnaker_pynn()
- Module contents
Submodules¶
spynnaker.pyNN.config_setup module¶
- spynnaker.pyNN.config_setup.add_spynnaker_cfg() None[source]¶
Add the local configuration and all dependent configuration files.
- spynnaker.pyNN.config_setup.cfg_paths_skipped() Set[str][source]¶
Set of cfg path that would not be found based on other cfg settings
Assuming mode = Debug
- Returns:
List of cfg Option names that point to paths unlikely to be used.
- spynnaker.pyNN.config_setup.setup_configs() None[source]¶
Sets up the configurations including the users configuration file.
Clears out any previous read configurations but does not load the new configurations so a warning is generated if a configuration is used before setup is called.
- spynnaker.pyNN.config_setup.unittest_setup() None[source]¶
Does all the steps that may be required before a unit-test.
Resets the configurations so only the local default configurations are included. The user configuration is not included!
Unsets any previous simulators and temporary directories
Note
This file should only be called from sPyNNaker tests that do not call sim.setup
spynnaker.pyNN.exceptions module¶
- exception spynnaker.pyNN.exceptions.DelayExtensionException[source]¶
Bases:
ConfigurationExceptionRaised when a delay extension vertex fails.
- exception spynnaker.pyNN.exceptions.FilterableException[source]¶
Bases:
SpynnakerExceptionRaised when it is not possible to determine if an edge should be filtered.
- exception spynnaker.pyNN.exceptions.InvalidParameterType[source]¶
Bases:
SpynnakerExceptionRaised when a parameter is not recognised.
- exception spynnaker.pyNN.exceptions.MemReadException[source]¶
Bases:
SpynnakerExceptionRaised when the PyNN front end fails to read a certain memory region.
- exception spynnaker.pyNN.exceptions.SpynnakerSplitterConfigurationException[source]¶
Bases:
ConfigurationExceptionRaised when a splitter configuration fails.
- exception spynnaker.pyNN.exceptions.SynapseRowTooBigException(max_size: int, message: str)[source]¶
Bases:
SpynnakerExceptionRaised when a synapse row is bigger than is allowed.
- Parameters:
max_size – the maximum permitted size of row
message – the exception message
- exception spynnaker.pyNN.exceptions.SynapticBlockGenerationException[source]¶
Bases:
ConfigurationExceptionRaised when the synaptic manager fails to generate a synaptic block.
- exception spynnaker.pyNN.exceptions.SynapticBlockReadException[source]¶
Bases:
ConfigurationExceptionRaised when the synaptic manager fails to read a synaptic block or convert it into readable values.
- exception spynnaker.pyNN.exceptions.SynapticConfigurationException[source]¶
Bases:
ConfigurationExceptionRaised when the synaptic manager fails for some reason.
- exception spynnaker.pyNN.exceptions.SynapticMaxIncomingAtomsSupportException[source]¶
Bases:
ConfigurationExceptionRaised when a synaptic sublist exceeds the max atoms possible to be supported.
spynnaker.pyNN.random_distribution module¶
spynnaker.pyNN.setup_pynn module¶
This script installs sPyNNaker so that it usable as the pyNN.spiNNaker
module.
Note
This modifies your pyNN installation!
- spynnaker.pyNN.setup_pynn.install_spynnaker_into(module: ModuleType) None[source]¶
Do the actual installation by creating a package within the given module’s implementation. This is very nasty!
- Parameters:
module
- spynnaker.pyNN.setup_pynn.version_satisfies(module: ModuleType, requirement: str) bool[source]¶
Perform a version check. This code could be smarter…
- Parameters:
module
requirement
- Returns:
Whether the module’s version satisfies the given requirement
spynnaker.pyNN.spinnaker module¶
spynnaker.pyNN.spynnaker_external_device_plugin_manager module¶
- class spynnaker.pyNN.spynnaker_external_device_plugin_manager.SpynnakerExternalDevicePluginManager[source]¶
Bases:
objectUser-level interface for the external device plug-in manager.
- static activate_live_output_for(population: Population, *, database_notify_host: str | None = None, database_notify_port_num: int | None = None, database_ack_port_num: int | None = None, port: int | None = None, host: str | None = None, tag: int | None = None, strip_sdp: bool = True, use_prefix: bool = False, key_prefix: int | None = None, prefix_type: EIEIOPrefix | None = None, message_type: EIEIOType = EIEIOType.KEY_32_BIT, right_shift: int = 0, payload_as_time_stamps: bool = True, notify: bool = True, use_payload_prefix: bool = True, payload_prefix: int | None = None, payload_right_shift: int = 0, number_of_packets_sent_per_time_step: int = 0, translate_keys: bool = False, partition_ids: Iterable[str] | None = None) None[source]¶
Output the spikes from a given population from SpiNNaker as they occur in the simulation.
- Parameters:
population – The population to activate the live output for
database_notify_host – The hostname for the device which is listening to the database notification.
database_ack_port_num – The port number to which a external device will acknowledge that they have finished reading the database and are ready for it to start execution
database_notify_port_num – The port number to which a external device will receive the database is ready command
key_prefix – the prefix to be applied to the key
prefix_type – if the prefix type is 32 bit or 16 bit
message_type – If the message is a EIEIO command message, or an EIEIO data message with 16 bit or 32 bit keys.
payload_as_time_stamps
right_shift
use_payload_prefix
notify
payload_prefix
payload_right_shift
number_of_packets_sent_per_time_step
port – The UDP port to which the live spikes will be sent. If not specified, the port will be taken from the “live_spike_port” parameter in the “Recording” section of the sPyNNaker configuration file.
host – The host name or IP address to which the live spikes will be sent. If not specified, the host will be taken from the “live_spike_host” parameter in the “Recording” section of the sPyNNaker configuration file.
tag – The IP tag to be used for the spikes. If not specified, one will be automatically assigned
strip_sdp – Determines if the SDP headers will be stripped from the transmitted packet.
use_prefix – Determines if the spike packet will contain a common prefix for the spikes
partition_ids – The names of the partitions to create edges for
translate_keys – Whether the incoming keys from the cores should be translated to global keys rather than core-based keys
- static activate_live_output_to(population: Population, device: Population | ApplicationVertex, partition_id: str = 'SPIKE') None[source]¶
Activate the output of spikes from a population to an external device.
Note
All spikes will be sent to the device.
- Parameters:
population – The pyNN population object from which spikes will be sent.
device – The pyNN population or external device to which the spikes will be sent.
partition_id – The partition ID to activate live output to.
- static add_application_vertex(vertex: ApplicationVertex) None[source]¶
Adds an Application vertex to the user graph.
Semantic sugar for SpynnakerDataView.add_vertex(vertex)
- Parameters:
vertex
- static add_database_socket_address(database_notify_host: str | None, database_notify_port_num: int | None, database_ack_port_num: int | None) None[source]¶
Creates a new SocketAddress and saves in into the data view
- Parameters:
database_notify_host – Host to talk to tell that the database (and application) is ready.
database_notify_port_num – Port to talk to tell that the database (and application) is ready.
database_ack_port_num – Port on which to listen for an acknowledgement that the simulation should start.
- static add_edge(vertex: ApplicationVertex, device_vertex: ApplicationVertex, partition_id: str) ApplicationEdge[source]¶
Add an edge between two vertices (often a vertex and a external device) on a given partition.
- Parameters:
vertex – the pre-population vertex to connect the edge from
device_vertex – the post-population vertex to connect the edge to
partition_id – the partition identifier for making nets
- Returns:
Edge added
- static add_poisson_live_rate_control(poisson_population: Population, *, control_label_extension: str = '_control', receive_port: int | None = None, database_notify_host: str | None = None, database_notify_port_num: int | None = None, database_ack_port_num: int | None = None, notify: bool = True, reserve_reverse_ip_tag: bool = False) None[source]¶
Add a live rate controller to a Poisson population.
- Parameters:
poisson_population – The population to control
control_label_extension – An extension to add to the label of the Poisson source. Must match up with the equivalent in the SpynnakerPoissonControlConnection
receive_port – The port that the SpiNNaker board should listen on
database_notify_host – the hostname for the device which is listening to the database notification.
database_ack_port_num – the port number to which a external device will acknowledge that they have finished reading the database and are ready for it to start execution
database_notify_port_num – The port number to which an external device will receive the database is ready command
notify – adds to the notification protocol if set.
reserve_reverse_ip_tag – True if a reverse IP tag is to be used, False if SDP is to be used (default)
- static update_live_packet_gather_tracker(vertex_to_record_from: ApplicationVertex, params: LivePacketGatherParameters, partition_ids: Iterable[str]) None[source]¶
Add an edge from a vertex to the live packet gatherer, builds as needed and has all the parameters for the creation of the live packet gatherer if needed.
- Parameters:
vertex_to_record_from
params
partition_ids
spynnaker.pyNN.types module¶
Types (and related) that are useful for implementing connectors.