Bases: astropy.units.core.UnitBase
Create a composite unit using expressions of previously defined units.
Direct use of this class is not recommended. Instead use the factory function Unit(...) and arithmetic operators to compose units.
Parameters : | scale : number
bases : sequence of UnitBase
powers : sequence of numbers
|
---|
Attributes Summary
bases | Return the bases of the composite unit. |
powers | Return the powers of the composite unit. |
scale | Return the scale of the composite unit. |
Methods Summary
decompose([bases]) | Return a unit object composed of only irreducible units. |
Attributes Documentation
Methods Documentation
Return a unit object composed of only irreducible units.
Parameters : | bases : sequence of UnitBase, optional
|
---|---|
Returns : | unit : CompositeUnit object
|