- qunits.prefix. Context[source]
-
The context of a unit distinguishes quantities of the same dimension that must not be mixed. Quantities can only be added, subtracted or converted into each other if their units have the same context.
A product of a unit with a context and a unit without one keeps the context, e.g.
u.pi * u.kHz, and so does the quotient of a unit with a context by a unit without one, e.g.u.rad / u.s. Other products, quotients and powers have the contextI.- Attributes:
-
- I0
No context.
- ANGLE1
Angles, e.g.
u.radandu.pi.np.sin,np.cosandnp.tanrequire this context.