You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow configuring the component graph from microgrid.initialize()
The new `component_graph_config` keyword argument takes a
`ComponentGraphConfig` and is passed to the `ComponentGraph`
constructor. When it is `None`, the library's default configuration
is used. `ComponentGraphConfig` and `FormulaOverrides` are
re-exported from `frequenz.sdk.microgrid`.
The test helper class that had the same name is renamed to
`ComponentGraphSpec`, to avoid confusion with the re-exported
library class.
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@
8
8
9
9
## New Features
10
10
11
+
*`microgrid.initialize()` has a new keyword argument `component_graph_config`. It takes a `ComponentGraphConfig` and gives full control over how the component graph is built. For example, pass `ComponentGraphConfig(prefer_meters_in_component_formulas=True)` to make the per-category formulas read from the meter first, as in previous releases. `ComponentGraphConfig` and `FormulaOverrides` are re-exported from `frequenz.sdk.microgrid`.
11
12
* The PV inverter manager now accounts for the power measured on unreachable PV inverters when distributing power, so the reachable inverters compensate for it (matching the battery manager's behavior).
0 commit comments