# wrap_function_remove_dimensions function

(Shortest import: `from brian2.units.fundamentalunits import wrap_function_remove_dimensions)`

brian2.units.fundamentalunits.wrap_function_remove_dimensions(func)

  Returns a new function that wraps the given function `func` so that it removes any dimensions from its input. Useful for functions that are returning integers (indices) or booleans, irrespective of the datatype contained in the array.

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