set_device function

(Shortest import: from brian2 import set_device)

brian2.devices.device.set_device(device)[source]

Sets the active Device object