Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2023-09-29 16:05:40 -07:00
parent 31cd9e532d
commit 12c164620b
268 changed files with 22464 additions and 18287 deletions

View File

@ -2,20 +2,19 @@ from enum import Enum
class UnitEnergy(str, Enum):
"""The valid types of energy units.""" # noqa: E501
""" The valid types of energy units. """ # noqa: E501
"""# British Thermal Unit (BTU) <https://en.wikipedia.org/wiki/British_thermal_unit> """ # noqa: E501
BTU = 'btu'
"""# Electron Volts (eV) <https://en.wikipedia.org/wiki/Electronvolt> """ # noqa: E501
ELECTRONVOLTS = 'electronvolts'
"""# Joules (or watt-seconds) <https://en.wikipedia.org/wiki/Joule> """ # noqa: E501
JOULES = 'joules'
"""# Kilocalories (often just called calories) <https://en.wikipedia.org/wiki/Kilocalorie> """ # noqa: E501
KILOCALORIES = 'kilocalories'
"""# Kilowatt hours (kWh) <https://en.wikipedia.org/wiki/Kilowatt-hour> """ # noqa: E501
KILOWATT_HOURS = 'kilowatt_hours'
"""# Watt hours (Wh) <https://en.wikipedia.org/wiki/Kilowatt-hour> """ # noqa: E501
WATT_HOURS = 'watt_hours'
"""# British Thermal Unit (BTU) <https://en.wikipedia.org/wiki/British_thermal_unit> """ # noqa: E501
BTU = "btu"
"""# Electron Volts (eV) <https://en.wikipedia.org/wiki/Electronvolt> """ # noqa: E501
ELECTRONVOLTS = "electronvolts"
"""# Joules (or watt-seconds) <https://en.wikipedia.org/wiki/Joule> """ # noqa: E501
JOULES = "joules"
"""# Kilocalories (often just called calories) <https://en.wikipedia.org/wiki/Kilocalorie> """ # noqa: E501
KILOCALORIES = "kilocalories"
"""# Kilowatt hours (kWh) <https://en.wikipedia.org/wiki/Kilowatt-hour> """ # noqa: E501
KILOWATT_HOURS = "kilowatt_hours"
"""# Watt hours (Wh) <https://en.wikipedia.org/wiki/Kilowatt-hour> """ # noqa: E501
WATT_HOURS = "watt_hours"
def __str__(self) -> str:
return str(self.value)
def __str__(self) -> str:
return str(self.value)