qunits.registry
The qunits.registry module provides the unit registry
u,
which includes all predefined units with prefixes. If you don't want to add custom units, you simply need to import u.
from qunits import u
The registry contains the following units, each with the prefixes for powers of 1000 in the given range, e.g.
u.fs, u.ps, ..., u.s. The attosecond is u.attosecond, because
as is a keyword. u.I is the dimensionless unit.
| Unit | Dimension | Prefixes |
|---|---|---|
percent | Dimensionless | none |
rad | Dimensionless, angle | nrad – rad |
pi | Dimensionless, angle | none |
m | Length | qm – km |
g | Mass | fg – kg |
u (atomic mass unit) | Mass | none |
s | Time | qs – s |
A | ElectricCurrent | fA – MA |
K | Temperature | fK – K |
mol | AmountOfSubstance | fmol – kmol |
cd | LuminousIntensity | fcd – Gcd |
Hz | Frequency | fHz – QHz |
c (speed of light) | Velocity | none |
N | Force | fN – PN |
Pa | Pressure | fPa – PPa |
J | Energy | fJ – PJ |
eV | Energy | feV – PeV |
W | Power | fW – PW |
h (Planck constant) | Action | none |
V | Voltage | fV – GV |
F | Capacitance | fF – kF |
Ohm | Resistance | fOhm – GOhm |
C | Charge | fC – GC |
e (elementary charge) | Charge | none |
T | MagneticInduction | fT – PT |
G (gauss) | MagneticInduction | pG – EG |