kittycad.models.unit_energy_format.UnitEnergyFormat
- class kittycad.models.unit_energy_format.UnitEnergyFormat(value)[source][source]
-
The valid types of energy unit formats.
Attributes
//en.wikipedia.org/wiki/Calorie>
//en.wikipedia.org/wiki/Kilowatt-hour>
//en.wikipedia.org/wiki/Kilowatt-hour>
//en.wikipedia.org/wiki/British_thermal_unit>
//en.wikipedia.org/wiki/Therm#Definitions>
//en.wikipedia.org/wiki/Therm#Definitions>
//en.wikipedia.org/wiki/Therm>
//en.wikipedia.org/wiki/Foot-pound_(energy)>
- BRITISH_THERMAL_UNIT = 'british_thermal_unit'[source]
//en.wikipedia.org/wiki/Therm#Definitions>
- Type
# <https
- BRITISH_THERMAL_UNIT59 = 'british_thermal_unit59'[source]
//en.wikipedia.org/wiki/Therm>
- Type
# <https
- BRITISH_THERMAL_UNIT_ISO = 'british_thermal_unit_iso'[source]
//en.wikipedia.org/wiki/Therm#Definitions>
- Type
# <https
- __dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.unit_energy_format', '__doc__': 'The valid types of energy unit formats.', '__str__': <function UnitEnergyFormat.__str__>, '__dict__': <attribute '__dict__' of 'UnitEnergyFormat' objects>, '__weakref__': <attribute '__weakref__' of 'UnitEnergyFormat' objects>, '_member_names_': ['JOULE', 'CALORIE', 'KILOWATT_HOUR', 'WATT_HOUR', 'BRITISH_THERMAL_UNIT', 'BRITISH_THERMAL_UNIT_ISO', 'BRITISH_THERMAL_UNIT59', 'THERM', 'FOOT_POUND'], '_member_map_': {'JOULE': <UnitEnergyFormat.JOULE: 'joule'>, 'CALORIE': <UnitEnergyFormat.CALORIE: 'calorie'>, 'KILOWATT_HOUR': <UnitEnergyFormat.KILOWATT_HOUR: 'kilowatt_hour'>, 'WATT_HOUR': <UnitEnergyFormat.WATT_HOUR: 'watt_hour'>, 'BRITISH_THERMAL_UNIT': <UnitEnergyFormat.BRITISH_THERMAL_UNIT: 'british_thermal_unit'>, 'BRITISH_THERMAL_UNIT_ISO': <UnitEnergyFormat.BRITISH_THERMAL_UNIT_ISO: 'british_thermal_unit_iso'>, 'BRITISH_THERMAL_UNIT59': <UnitEnergyFormat.BRITISH_THERMAL_UNIT59: 'british_thermal_unit59'>, 'THERM': <UnitEnergyFormat.THERM: 'therm'>, 'FOOT_POUND': <UnitEnergyFormat.FOOT_POUND: 'foot_pound'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'joule': <UnitEnergyFormat.JOULE: 'joule'>, 'calorie': <UnitEnergyFormat.CALORIE: 'calorie'>, 'kilowatt_hour': <UnitEnergyFormat.KILOWATT_HOUR: 'kilowatt_hour'>, 'watt_hour': <UnitEnergyFormat.WATT_HOUR: 'watt_hour'>, 'british_thermal_unit': <UnitEnergyFormat.BRITISH_THERMAL_UNIT: 'british_thermal_unit'>, 'british_thermal_unit_iso': <UnitEnergyFormat.BRITISH_THERMAL_UNIT_ISO: 'british_thermal_unit_iso'>, 'british_thermal_unit59': <UnitEnergyFormat.BRITISH_THERMAL_UNIT59: 'british_thermal_unit59'>, 'therm': <UnitEnergyFormat.THERM: 'therm'>, 'foot_pound': <UnitEnergyFormat.FOOT_POUND: 'foot_pound'>}, 'JOULE': <UnitEnergyFormat.JOULE: 'joule'>, 'CALORIE': <UnitEnergyFormat.CALORIE: 'calorie'>, 'KILOWATT_HOUR': <UnitEnergyFormat.KILOWATT_HOUR: 'kilowatt_hour'>, 'WATT_HOUR': <UnitEnergyFormat.WATT_HOUR: 'watt_hour'>, 'BRITISH_THERMAL_UNIT': <UnitEnergyFormat.BRITISH_THERMAL_UNIT: 'british_thermal_unit'>, 'BRITISH_THERMAL_UNIT_ISO': <UnitEnergyFormat.BRITISH_THERMAL_UNIT_ISO: 'british_thermal_unit_iso'>, 'BRITISH_THERMAL_UNIT59': <UnitEnergyFormat.BRITISH_THERMAL_UNIT59: 'british_thermal_unit59'>, 'THERM': <UnitEnergyFormat.THERM: 'therm'>, 'FOOT_POUND': <UnitEnergyFormat.FOOT_POUND: 'foot_pound'>, '__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_ = {'BRITISH_THERMAL_UNIT': UnitEnergyFormat.BRITISH_THERMAL_UNIT, 'BRITISH_THERMAL_UNIT59': UnitEnergyFormat.BRITISH_THERMAL_UNIT59, 'BRITISH_THERMAL_UNIT_ISO': UnitEnergyFormat.BRITISH_THERMAL_UNIT_ISO, 'CALORIE': UnitEnergyFormat.CALORIE, 'FOOT_POUND': UnitEnergyFormat.FOOT_POUND, 'JOULE': UnitEnergyFormat.JOULE, 'KILOWATT_HOUR': UnitEnergyFormat.KILOWATT_HOUR, 'THERM': UnitEnergyFormat.THERM, 'WATT_HOUR': UnitEnergyFormat.WATT_HOUR}[source]
- _member_names_ = ['JOULE', 'CALORIE', 'KILOWATT_HOUR', 'WATT_HOUR', 'BRITISH_THERMAL_UNIT', 'BRITISH_THERMAL_UNIT_ISO', 'BRITISH_THERMAL_UNIT59', 'THERM', 'FOOT_POUND'][source]
- _value2member_map_ = {'british_thermal_unit': UnitEnergyFormat.BRITISH_THERMAL_UNIT, 'british_thermal_unit59': UnitEnergyFormat.BRITISH_THERMAL_UNIT59, 'british_thermal_unit_iso': UnitEnergyFormat.BRITISH_THERMAL_UNIT_ISO, 'calorie': UnitEnergyFormat.CALORIE, 'foot_pound': UnitEnergyFormat.FOOT_POUND, 'joule': UnitEnergyFormat.JOULE, 'kilowatt_hour': UnitEnergyFormat.KILOWATT_HOUR, 'therm': UnitEnergyFormat.THERM, 'watt_hour': UnitEnergyFormat.WATT_HOUR}[source]