hbp_nrp_cle.brainsim.nengo.NengoCommunicationAdapter module¶
The brain communication adapter for the Nengo default simulator
-
class
NengoCommunicationAdapter
(nengo_simulation_state)[source]¶ Bases:
hbp_nrp_cle.brainsim.common.__AbstractCommunicationAdapter.AbstractCommunicationAdapter
Represents the communication adapter to the neuronal simulator
-
create_view
(population, sl)[source]¶ Creates a view of the given population
- Parameters
population – The base population
sl – The slice of the population that represents the view
-
is_population
(population)[source]¶ Determines whether the given object is a population
- Parameters
population – The object that may be a population
-
register_spike_sink
(populations, spike_detector_type, **params)[source]¶ Requests a communication object with the given spike detector type for the given set of neurons
- 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]¶ Requests a communication object with the given spike generator type for the given set of neurons
- 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
-