hbp_nrp_cle.brainsim.pynn_spiNNaker.PyNNSpiNNakerControlAdapter module

This module contains an adapted implementation of a neural controller for SpiNNaker

class PySpiNNakerControlAdapter(sim)[source]

Bases: hbp_nrp_cle.brainsim.pynn.PyNNControlAdapter.PyNNControlAdapter

An implementation to control a SpiNNaker board simulation synchronously

get_Timeout()[source]

returns The maximum amount of time (in seconds) to wait for the end of this step

initialize(**params)[source]

Initializes the neuronal simulator

Parameters
  • timestep – The timestep used for the neuronal simulation

  • min_delay – The minimum delay

  • max_delay – The maximum delay

  • threads – The amount of threads that should be used to run the simulation

  • rng_seeds – The rng seeds for the simulation

Returns

True if the simulator is initialized, otherwise False

run_step(dt)[source]

Runs the neuronal simulator for the given amount of simulated time

Parameters

dt – the simulated time in milliseconds

shutdown()[source]

Shuts down the neuronal simulator

all_ids(population)[source]

Returns all ids of the neurons

Parameters

population – The population