all_registered_units function

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


Generator returning all registered units.


regs : any number of UnitRegistry objects.

If given, units from the given registries are returned. If none are given, units are returned from the standard units, the user-registered units and the “additional units” (e.g. newton * metre) in that order.


u : Unit

A single unit from the registry.