wrap_units function

(Shortest import: from brian2.hears import wrap_units)

brian2.hears.wrap_units(f)[source]

Wrap a function to convert units into a form that Brian 1 can handle. Also, check the output argument, if it is a b1h.Sound wrap it.