Commit a336381
committed
Set zero power for PV inverters not neccessary to reach target power
If desired power is already reached without the need to use some
inverters, their powers need to be set to zero.
If not, their original powers would remain and the target powers would
be wrong.
In case the requested power is zero, this was also leading to crashes
because there were no allocations. This change also fixes that issue.
Signed-off-by: Sahas Subramanian <[email protected]>1 parent b9bc2c2 commit a336381
File tree
2 files changed
+24
-2
lines changed- src/frequenz/sdk/actor/power_distributing/_component_managers/_pv_inverter_manager
- tests/timeseries/_pv_pool
2 files changed
+24
-2
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
0 commit comments