- qunits.dimension. Dimension[source]
-
The base class of the dimensions. A dimension is a vector of the exponents of the seven SI base dimensions. The dimensions are classes, not instances, and there is exactly one class per vector. Dimensions that are not predefined are created by unit arithmetic, e.g.
(u.cd / u.m**2).d.- Attributes:
-
- namestr
The name of the dimension. Dimensions created by unit arithmetic have generated names, e.g.
LuminousIntensity__DIV__Area.- si_mapExpMap
The
ExpMapof the SI unit of the dimension, e.g.frozenset({("J", 1)})forEnergy.- vecDimensionVec
The
DimensionVecof the dimension, e.g.(0, 1, 0, 0, 0, 0, 0)forLength.