hbp_nrp_distributed_nest.cle.DistributedPyNNCommunicationAdapter module

Extensions of the base CLE PyNNCommunicationAdapter to communicate with distributed processes. Maxmimum code reuse and minimal duplication where possible.

class DistributedPyNNCommunicationAdapter[source]

Bases: hbp_nrp_cle.brainsim.pynn_nest.PyNNNestCommunicationAdapter.PyNNNestCommunicationAdapter

Represents a distributed Nest communication adapter for the neuronal simulation

initialize()[source]

Marks the adapter as initialized.

register_spike_sink(populations, spike_detector_type, **params)[source]

Intercepts default PyNNNestCommunicationAdapter request and notifies all other processes to do the same.

Parameters
  • populations – A reference to the populations which should be connected to the spike detector

  • spike_detector_type – A spike detector type (see documentation for a list of allowed values)

  • params – A dictionary of configuration parameters

Returns

A Communication object or a group of objects

register_spike_source(populations, spike_generator_type, **params)[source]

Intercepts default PyNNNestCommunicationAdapter request and notifies all other processes to do the same.

Parameters
  • populations – A reference to the populations to which the spike generator should be connected

  • spike_generator_type – A spike generator type (see documentation or a list of allowed values)

  • params – A dictionary of configuration parameters

Returns

A communication object or a group of objects

unregister_spike_sink(device)[source]

Disconnects and unregisters the given spike detector device and notifies all other processes to do the same.

Parameters

device – The spike detector device to deregister.

unregister_spike_source(device)[source]

Disconnects and unregisters the given spike generator device and notifies all other processes to do the same.

Parameters

device – The spike generator device to deregister.