Update component graph to v0.5.0#113
Merged
shsms merged 3 commits intoJul 21, 2026
Merged
Conversation
The notes still described the v0.4.3 release, which has shipped. Reset them from the template so this cycle starts clean. Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
dev-pytest did not pull the render-graph extra, so matplotlib and networkx were missing. mypy could not find the matplotlib stubs and failed on _render_graph.py, and pytest skipped tests/test_render_graph.py, so its tests never ran. Pull the render-graph extra in dev-pytest so both cover the renderer. Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
v0.5.0 rewrites the formula fallback engine and flips the default of prefer_meters_in_component_formulas to False. The per-category formulas now read the component first and use the meter as the fallback, and they can now use meter subtraction as a fallback term. We take the new default, which changes the generated per-category formulas. v0.5.0 also references the SteamBoiler component, which was added in frequenz-client-assets 0.3.1, so bump that lower bound too. The test graph only has a solar inverter, so the pinned pv formula flips its expected order. Ported from update-component-graph-0.5 on the v0.x.x line. The config knob and CLI flag that let callers keep the meter-first order are not part of this port. Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
shsms
requested review from
florian-wagner-frequenz and
micaebe
and removed request for
a team
July 21, 2026 10:01
cwasicki
approved these changes
Jul 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This updates the microgrid component graph library to v0.5.0 on the v0.4.x line, adopting its rewritten formula fallback engine and new component-first source order.
Changes
frequenz-microgrid-component-graphto>= 0.5.0, < 0.6, andfrequenz-client-assetsto>= 0.3.1(v0.5.0 references theSteamBoilercomponent added there).render-graphextra intodev-pytest, so mypy checks_render_graph.pyand the renderer tests actually run (they were silently skipped before).RELEASE_NOTES.md(the previous notes shipped with v0.4.3) and document the update.