from brian2.core.base import device_override)
Decorates a function/method to allow it to be overridden by the current
nameis the function name in the
Deviceto use as an override if it exists.
The returned function has an additional attribute
original_functionwhich is a reference to the original, undecorated function.