Repository navigation
v0.5.2
Pre-release
Pre-release
·
2 commits
to v0.x.x
since this release
Immutable
release. Only release title and notes can be modified.
Frequenz Microgrid Component Graph Library Release Notes
Caution
This release has been yanked on pypi.org. Please use v0.6.0.
Summary
This release updates the frequenz-microgrid-component-graph Rust crate to v0.6.3, which stops clamping the consumer and producer formulas.
Upgrading
ComponentGraph.consumer_formula()andComponentGraph.producer_formula()no longer clamp their results. The clamps assumed the sign of active power, so they replaced valid values of other metrics, such as reactive power, with zero.- The consumer formula was wrapped in
MAX(…, 0.0). It can now be negative, for example when unmodeled production or a measurement mismatch is larger than the consumption. To get the old result, wrap the formula asMAX(<formula>, 0.0). - Each producer term was wrapped in
MIN(…, 0.0). A producer that draws power now adds a positive value instead of zero, so the total can be positive. For example, PV producing 10 kW and a CHP drawing 2 kW used to give -10 kW and now give -8 kW. There is one exception: when the two share a meter below the grid meter, that meter sends data, anddisable_fallback_componentsis off, the meter measures them together, so they gave -8 kW before too. Wrapping the total asMIN(<formula>, 0.0)clamps the total at zero, but it still differs from the old result when one producer draws power while another produces. - With
include_phantom_loads_in_consumer_formula=True, the consumer formula is unchanged: it still clamps each of its terms at zero.
- The consumer formula was wrapped in
What's Changed
- Bump the patch group with 4 updates by @dependabot[bot] in #109
- Bump nox from 2026.7.11 to 2026.8.17 in the minor group by @dependabot[bot] in #110
- Bump flake8-datetimez from 20.10.0 to 26.8.1 by @dependabot[bot] in #113
- Bump isort from 8.0.1 to 9.0.1 by @dependabot[bot] in #112
- Bump frequenz-repo-config from 0.18.0 to 0.19.0 in the repo-config group across 1 directory by @dependabot[bot] in #111
- Bump the patch group with 2 updates by @dependabot[bot] in #114
- Bump the minor group with 4 updates by @dependabot[bot] in #115
- Bump pydoclint from 0.9.1 to 0.10.1 by @dependabot[bot] in #116
- Bump component-graph version to 0.6.3 by @shsms in #117
Full Changelog: v0.5.1...v0.5.2