Units Module¶
For complete API documentation of the units module, see API Reference.
Quick Reference¶
UnitSpec
- Unit field annotationHasUnits
- Base mixin for unit-aware componentsHasPerUnit
- Extended mixin with system-base supportUnitSystem
- Display mode enumerationset_unit_system()
- Set global display modeget_unit_system()
- Get current display modeunit_system()
- Context manager for temporary mode changes
See also
Working with Units in Power System Components for a step-by-step introduction
Unit Operations for practical recipes
Unit System Design and Architecture for design rationale