all_registered_units function

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

brian2.units.fundamentalunits.all_registered_units(*regs)[source]

Generator returning all registered units.

Parameters:

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.

Returns:

u : Unit

A single unit from the registry.