from brian2.units.fundamentalunits import wrap_function_keep_dimensions)
Returns a new function that wraps the given function
funcso that it keeps the dimensions of its input. Quantities are transformed to unitless numpy arrays before calling
func, the output is a quantity with the original dimensions re-attached.
These transformations apply only to the very first argument, all other arguments are ignored/untouched, allowing to work functions like
sumto work as expected with additional