Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix consumer_power() not working certain configurations. #589

Merged
merged 3 commits into from
Aug 22, 2023

Commits on Aug 21, 2023

  1. MockMicrogrid: Add a consumer meter only explicitly.

    Renames the `grid_side_meter` parameter to be more understandable
    and explicit.
    
    Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
    Marenz committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    2e6ca85 View commit details
    Browse the repository at this point in the history
  2. Add some tests for scenarios with no meter.

    Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
    Marenz committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    0f8063f View commit details
    Browse the repository at this point in the history
  3. Fix consumer_power() not working certain configurations.

    In microgrids without consumers and no main meter, the formula
    would never return any values.
    
    Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
    Marenz committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    14f4cd8 View commit details
    Browse the repository at this point in the history