Commit 894fcf2
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 bea9449 commit 894fcf2
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 | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
| 152 | + | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
| |||
| 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