kittycad.models.unit_energy
Classes
|
The valid types of energy units. |
- class kittycad.models.unit_energy.UnitEnergy(value)[source][source]
The valid types of energy units.
- ELECTRONVOLTS = 'electronvolts'[source]
//en.wikipedia.org/wiki/Joule>
- Type:
# Joules (or watt-seconds) <https
- JOULES = 'joules'[source]
//en.wikipedia.org/wiki/Kilocalorie>
- Type:
# Kilocalories (often just called calories) <https
- KILOCALORIES = 'kilocalories'[source]
//en.wikipedia.org/wiki/Kilowatt-hour>
- Type:
# Kilowatt hours (kWh) <https
- KILOWATT_HOURS = 'kilowatt_hours'[source]
//en.wikipedia.org/wiki/Kilowatt-hour>
- Type:
# Watt hours (Wh) <https
- __dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.unit_energy', '__doc__': 'The valid types of energy units.', '__str__': <function UnitEnergy.__str__>, '__dict__': <attribute '__dict__' of 'UnitEnergy' objects>, '__weakref__': <attribute '__weakref__' of 'UnitEnergy' objects>, '_member_names_': ['BTU', 'ELECTRONVOLTS', 'JOULES', 'KILOCALORIES', 'KILOWATT_HOURS', 'WATT_HOURS'], '_member_map_': {'BTU': <UnitEnergy.BTU: 'btu'>, 'ELECTRONVOLTS': <UnitEnergy.ELECTRONVOLTS: 'electronvolts'>, 'JOULES': <UnitEnergy.JOULES: 'joules'>, 'KILOCALORIES': <UnitEnergy.KILOCALORIES: 'kilocalories'>, 'KILOWATT_HOURS': <UnitEnergy.KILOWATT_HOURS: 'kilowatt_hours'>, 'WATT_HOURS': <UnitEnergy.WATT_HOURS: 'watt_hours'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'btu': <UnitEnergy.BTU: 'btu'>, 'electronvolts': <UnitEnergy.ELECTRONVOLTS: 'electronvolts'>, 'joules': <UnitEnergy.JOULES: 'joules'>, 'kilocalories': <UnitEnergy.KILOCALORIES: 'kilocalories'>, 'kilowatt_hours': <UnitEnergy.KILOWATT_HOURS: 'kilowatt_hours'>, 'watt_hours': <UnitEnergy.WATT_HOURS: 'watt_hours'>}, 'BTU': <UnitEnergy.BTU: 'btu'>, 'ELECTRONVOLTS': <UnitEnergy.ELECTRONVOLTS: 'electronvolts'>, 'JOULES': <UnitEnergy.JOULES: 'joules'>, 'KILOCALORIES': <UnitEnergy.KILOCALORIES: 'kilocalories'>, 'KILOWATT_HOURS': <UnitEnergy.KILOWATT_HOURS: 'kilowatt_hours'>, 'WATT_HOURS': <UnitEnergy.WATT_HOURS: 'watt_hours'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[source]
- _generate_next_value_(start, count, last_values)[source]
Generate the next value when not given.
name: the name of the member start: the initial start value or None count: the number of existing members last_value: the last value assigned or None
- _member_map_ = {'BTU': UnitEnergy.BTU, 'ELECTRONVOLTS': UnitEnergy.ELECTRONVOLTS, 'JOULES': UnitEnergy.JOULES, 'KILOCALORIES': UnitEnergy.KILOCALORIES, 'KILOWATT_HOURS': UnitEnergy.KILOWATT_HOURS, 'WATT_HOURS': UnitEnergy.WATT_HOURS}[source]