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
UnitRegistryobjects.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 :
UnitA single unit from the registry.