Skip to content

Commit 8e5d65e

Browse files
authored
Improve code comment in power distribution to PV inverters (#960)
2 parents 4b88ab2 + 7f06a07 commit 8e5d65e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/frequenz/sdk/actor/power_distributing/_component_managers/_pv_inverter_manager/_pv_inverter_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ async def distribute_power(self, request: Request) -> None:
132132
num_components = len(working_components)
133133
for idx, inv_id in enumerate(working_components):
134134
# Request powers are negative for PV inverters. When remaining power is
135-
# greater than 0.0, we can stop allocating further.
135+
# greater than or equal to 0.0, we can stop allocating further, and set 0
136+
# power for all inverters for which no allocations were made.
136137
if remaining_power > Power.zero() or is_close_to_zero(
137138
remaining_power.as_watts()
138139
):

0 commit comments

Comments
 (0)