Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/frequenz/sdk/power/_distribution_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class DistributionResult:


class DistributionAlgorithm:
r"""Distribute power between many components.
"""Distribute power between many components.

The purpose of this tool is to keep equal SoC level in the batteries.
It takes total power that should be to be set for some subset of battery-inverter
Expand Down Expand Up @@ -269,7 +269,7 @@ def _total_capacity(self, components: List[InvBatPair]) -> float:
def _compute_battery_availability_ratio(
self, components: List[InvBatPair], available_soc: Dict[int, float]
) -> Tuple[List[Tuple[InvBatPair, float]], float]:
r"""Compute battery ratio and the total sum of all of them.
"""Compute battery ratio and the total sum of all of them.

battery_availability_ratio = capacity_ratio[i] * available_soc[i]
Where:
Expand Down