power_balance.calc#
Source: power_balance/calc/__init__.py
Class Efficiency#
Efficiency(name: str, numerator_name: str, denominator_name: str, description: str = '') -> None
Methods#
calculate#
calculate(self, numerator: Union[float, numpy.ndarray], denominator: Union[float, numpy.ndarray]) -> float
Calculate an efficiency from the given values and save it If the specified arguments are arrays the average of each is used.
Parameters#
-
numerator
:typing.Union
numerator value
-
denominator
:typing.Union
denominator value
Returns#
-
float
efficiency value
construct_html_form#
construct_html_form(self) -> str
value#
value(self)
Retrieve Efficiency value
Last update:
April 1, 2022