pycba.units.resolve#
- resolve(units=None)[source]#
Resolve a units argument to a
UnitSystem.Nonereturns the global default (seeset_units()); a string is looked up among the presets (case-insensitive); aUnitSystemis returned unchanged.- Raises:
KeyError – If
unitsis an unknown preset name.- Return type: