device_override function¶
(Shortest import: from brian2.core.base import device_override)
-
brian2.core.base.device_override(name)[source]¶ Decorates a function/method to allow it to be overridden by the current
Device.The
nameis the function name in theDeviceto use as an override if it exists.The returned function has an additional attribute
original_functionwhich is a reference to the original, undecorated function.