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
-
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
-