reset_device function

(Shortest import: from brian2.devices import reset_device)

brian2.devices.device.reset_device(device=None)[source]

Reset to a previously used device. Restores also the previously specified build options (see set_device()) for the device. Mostly useful for internal Brian code and testing on various devices.