bug None/1000 solved #34

Merged
g_gutierrez merged 1 commits from bug_in_costs_catalog into main 2023-07-18 11:52:38 -04:00

View File

@ -46,7 +46,10 @@ class Fuel:
Get fixed operational costs depending on the peak power consumed in currency per month per W
:return: None or float
"""
return self._fixed_power/1000
if self._fixed_power is not None:
return self._fixed_power/1000
else:
return None
@property
def variable(self) -> Union[tuple[None, None], tuple[float, str]]: