Skip to content

power_balance.calc#

Source: power_balance/calc/__init__.py

Class Efficiency#

Efficiency(name: str, numerator_name: str, denominator_name: str, description: str = '') -> None
Source: power_balance/calc/__init__.py

Methods#

calculate#

calculate(self, numerator: Union[float, numpy.ndarray], denominator: Union[float, numpy.ndarray]) -> float
Source: power_balance/calc/__init__.py

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
Source: power_balance/calc/__init__.py

value#

value(self)
Source: power_balance/calc/__init__.py

Retrieve Efficiency value


Last update: April 1, 2022