pynn_brainscales.brainscales2.simulator.Connection

class pynn_brainscales.brainscales2.simulator.Connection(connection_from_outside: Optional[_pygrenade_vx_execution.JITGraphExecutorHandle, None] = None)

Bases: object

Wrapper for connection to hardware supporting both using a connection supplied by the user and constructing an executor from the environment.

__init__(connection_from_outside: Optional[_pygrenade_vx_execution.JITGraphExecutorHandle, None] = None)

Construct connection.

Parameters

connection_from_outside – Optionally supplied connection

Methods

__init__([connection_from_outside])

Construct connection.

end()

Descruct connection if created during instance construction and not supplied from the outside.

get()

Get connection.

end()

Descruct connection if created during instance construction and not supplied from the outside.

get()

Get connection.