Skip to content

Add energy formulas - #143

Open
Mohammad-Tayyab-Frequenz wants to merge 3 commits into
frequenz-floss:v0.x.xfrom
Mohammad-Tayyab-Frequenz:add-energy-formulas
Open

Mohammad-Tayyab-Frequenz wants to merge 3 commits into
frequenz-floss:v0.x.xfrom
Mohammad-Tayyab-Frequenz:add-energy-formulas

Conversation

@Mohammad-Tayyab-Frequenz

Copy link
Copy Markdown
Contributor

Add AC_ENERGY_ACTIVE, AC_ENERGY_ACTIVE_CONSUMED, and AC_ENERGY_ACTIVE_DELIVERED to _derive_component_configs function.

Signed-off-by: Mohammad Tayyab <Mohammad.Tayyab@neustrom.de>
Signed-off-by: Mohammad Tayyab <Mohammad.Tayyab@neustrom.de>
Signed-off-by: Mohammad Tayyab <Mohammad.Tayyab@neustrom.de>
@Mohammad-Tayyab-Frequenz
Mohammad-Tayyab-Frequenz requested review from Marenz and removed request for a team October 19, 2026 18:55
@github-actions github-actions Bot added part:tests Affects the unit, integration and performance (benchmarks) tests part:docs Affects the documentation labels Oct 19, 2026
except ValueError:
pass
return {"AC_POWER_ACTIVE": derived}
return {metric: derived for metric in _AUTO_FORMULA_METRICS}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we resolve energies to power here instead? Otherwise we will end up duplicating the same summation formula for every metric.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants