spynnaker.pyNN.models.neural_projections package

Subpackages

Module contents

class spynnaker.pyNN.models.neural_projections.DelayAfferentApplicationEdge(pre_vertex, delay_vertex, label=None)

Bases: ApplicationEdge

Parameters:
class spynnaker.pyNN.models.neural_projections.DelayedApplicationEdge(pre_vertex, post_vertex, synapse_information, undelayed_edge, label=None)

Bases: ApplicationEdge

Parameters:
add_synapse_information(synapse_information)[source]
Parameters:

synapse_information (SynapseInformation) –

property synapse_information
Return type:

list(SynapseInformation)

property undelayed_edge

The edge for projections without extended delays.

Return type:

ProjectionApplicationEdge

class spynnaker.pyNN.models.neural_projections.ProjectionApplicationEdge(pre_vertex, post_vertex, synapse_information, label=None)

Bases: ApplicationEdge, AbstractProvidesLocalProvenanceData

An edge which terminates on an AbstractPopulationVertex.

Parameters:
add_synapse_information(synapse_information)[source]
Parameters:

synapse_information (SynapseInformation) –

property delay_edge

Settable.

Return type:

DelayedApplicationEdge or None

get_local_provenance_data()[source]

Get provenance data items and store them in the provenance DB.

property is_neuromodulation

Whether this edge is providing neuromodulation.

Return type:

bool

property n_delay_stages
Return type:

int

property synapse_information
Return type:

list(SynapseInformation)

class spynnaker.pyNN.models.neural_projections.SynapseInformation(connector, pre_population, post_population, prepop_is_view, postpop_is_view, synapse_dynamics, synapse_type, receptor_type, synapse_type_from_dynamics, weights=None, delays=None)

Bases: object

Contains the synapse information including the connector, synapse type and synapse dynamics.

Parameters:
  • connector (AbstractConnector) – The connector connected to the synapse

  • pre_population (Population or PopulationView) – The population sending spikes to the synapse

  • post_population (Population or PopulationView) – The population hosting the synapse

  • prepop_is_view (bool) – Whether the pre_population is a view

  • postpop_is_view (bool) – Whether the post_population is a view

  • synapse_dynamics (AbstractSynapseDynamics) – The dynamic behaviour of the synapse

  • synapse_type (int) – The type of the synapse

  • receptor_type (str) – Description of the receptor (e.g. excitatory)

  • synapse_type_from_dynamics (bool) – Whether the synapse type came from synapse dynamics

  • weights (float or list(float) or ndarray(float) or None) – The synaptic weights

  • delays (float or list(float) or ndarray(float) or None) – The total synaptic delays

add_pre_run_connection_holder(pre_run_connection_holder)[source]

Add a connection holder that will be filled in before run.

Parameters:

pre_run_connection_holder (ConnectionHolder) – The connection holder to be added

property connector

The connector connected to the synapse.

Return type:

AbstractConnector

property delays

The total synaptic delays (if any).

Return type:

float or list(float) or ndarray(float) or None

finish_connection_holders()[source]

Finish all the connection holders, and clear the list so that they are not generated again later.

may_generate_on_machine()[source]

Do we describe a collection of synapses whose synaptic matrix may be generated on SpiNNaker instead of needing to be calculated in this process and uploaded? This depends on the connector, the definitions of the weights and delays, and the dynamics of the synapses.

Returns:

True if the synaptic matrix may be generated on machine (or may have already been so done)

Return type:

bool

may_use_direct_matrix()[source]

Do the properties of the synaptic information allow it to use the direct matrix?

Return type:

bool

property n_post_neurons

The number of neurons in the post-population.

Return type:

int

property n_pre_neurons

The number of neurons in the pre-population.

Return type:

int

property post_population

The population hosting the synapse.

Return type:

Population or PopulationView

property postpop_is_view

Whether the post_population() is a view.

Return type:

bool

property pre_population

The population sending spikes to the synapse.

Return type:

Population or PopulationView

property pre_run_connection_holders

The list of connection holders to be filled in before run.

Return type:

list(ConnectionHolder)

property prepop_is_view

Whether the pre_population() is a view.

Return type:

bool

property receptor_type

A string representing the receptor type.

Return type:

str

property synapse_dynamics

The dynamic behaviour of the synapse.

Return type:

AbstractSynapseDynamics

property synapse_type

The type of the synapse.

Return type:

int

property synapse_type_from_dynamics

Whether the synapse type comes from the synapse dynamics.

Return type:

bool

property weights

The synaptic weights (if any).

Return type:

float or list(float) or ndarray(float) or None