wrap_function_to_method function

(Shortest import: from brian2.units.unitsafefunctions import wrap_function_to_method)

brian2.units.unitsafefunctions.wrap_function_to_method(func)[source]

Wraps a function so that it calls the corresponding method on the Quantities object (if called with a Quantities object as the first argument). All other arguments are left untouched.