wrap_function_dimensionless function

(Shortest import: from brian2.units.fundamentalunits import wrap_function_dimensionless)


Returns a new function that wraps the given function func so that it raises a DimensionMismatchError if the function is called on a quantity with dimensions (excluding dimensionless quantitities). Quantities are transformed to unitless numpy arrays before calling func.

These checks/transformations apply only to the very first argument, all other arguments are ignored/untouched.