hbp_nrp_cle.brainsim.nengo.NengoSimulationState module

NengoSimulationState.py moduleauthor: krach@fzi.de

class NengoSimulationState(loihi=False)[source]

Bases: object

Holds information about the Nengo simulation state

property brain_root

Returns the brain root

clear_probe_data(probe)[source]

Clears the data of the specified probe

delete_from_brain(device)[source]

Remove the brain device from the underlying root network structure.

initialize(simulator_factory)[source]

Initialize

property initialized

Returns whether the simulation state is initialized.

Returns

True, iff a simulation factory has been set.

load_brain(brain_file)[source]

Loads the brain model specified in the given Python script

Parameters

brain_file – The Python file containing the network

reset_simulator()[source]

Resets the Nengo simulator

property simulation_data

Returns the simulation data

property simulator

Returns the Nengo simulator instance. The simulator is initialized on first usage. In case the brain model has changed a new simulator is instantiated.

Returns