pycopancore.data_model.unit module¶
- class Unit(name='', desc='', *, is_base=True, symbol=None, factor=1, exponents=None, dimension=None)[source]¶
Bases:
object- __mul__(other)[source]¶
unit * other returns a unit (while non-unit * unit would return a DimensionalQuantity)
- __truediv__(other)[source]¶
unit / other returns a unit (while non-unit / unit would return a DimensionalQuantity)
- _dimension = None¶
- _dimensional_quantity_class = None¶
- desc = None¶
description
- property dimension¶
corresponding Dimension
- exponents = None¶
nonzero exponent
- Type:
dict of base Unit
- factor = None¶
scalar factor in front of product of powers of base Units
- is_base = None¶
whether this is a base unit
- name = None¶
full name
- symbol = None¶
symbol