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

Fallback components in generated formulas #1037

Commits on Aug 27, 2024

  1. Add method to get primary and fallback components

    Signed-off-by: Elzbieta Kotulska <[email protected]>
    ela-kotulska-frequenz committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    4e03166 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2024

  1. Add FallbackMetricFetcher to MetricFetcher

    FallbackMericFetcher stores fallback formula but generates
    and subscribes for it on demand.
    
    Signed-off-by: Elzbieta Kotulska <[email protected]>
    ela-kotulska-frequenz committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    a1ff91a View commit details
    Browse the repository at this point in the history
  2. Create fallback formulas for the PvPool.power

    Change PVPowerFormula to get primary and fallback of the given
    components. For the fallback comonents sub formulas are created
    This makes sure that both main and fallback formulas have the
    same behaviour and less complexity.
    
    Signed-off-by: Elzbieta Kotulska <[email protected]>
    ela-kotulska-frequenz committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    5926189 View commit details
    Browse the repository at this point in the history
  3. Fix tests after previous commit

    Signed-off-by: Elzbieta Kotulska <[email protected]>
    ela-kotulska-frequenz committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    91ad3e9 View commit details
    Browse the repository at this point in the history
  4. Change receiver limit in mock_resampler

    This receiver is only to forward messages to subscribers.
    It doesn't need more then 1 last message.
    No tests are broken after this.
    
    Signed-off-by: Elzbieta Kotulska <[email protected]>
    ela-kotulska-frequenz committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    2a515d1 View commit details
    Browse the repository at this point in the history
  5. Test pv_power formula with fallback components

    Signed-off-by: Elzbieta Kotulska <[email protected]>
    ela-kotulska-frequenz committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    94db914 View commit details
    Browse the repository at this point in the history
  6. Update release notes

    Signed-off-by: Elzbieta Kotulska <[email protected]>
    ela-kotulska-frequenz committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    18c0572 View commit details
    Browse the repository at this point in the history
  7. Fix MockMicrogrid add_chps method to can create chp without meter

    Previously if no_meter was True, meter was created but
    didn't send values. Now no meter is created.
    No tests are failing after this change
    
    Signed-off-by: Elzbieta Kotulska <[email protected]>
    ela-kotulska-frequenz committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    7f24fa2 View commit details
    Browse the repository at this point in the history
  8. Implement fallback feature for ProducerPowerFormula

    Signed-off-by: Elzbieta Kotulska <[email protected]>
    ela-kotulska-frequenz committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    2ed5975 View commit details
    Browse the repository at this point in the history
  9. Remove redundant parentheses in BatteryPowerFormula

    Signed-off-by: Elzbieta Kotulska <[email protected]>
    ela-kotulska-frequenz committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    778e5e4 View commit details
    Browse the repository at this point in the history
  10. Add fallback formula feature for BatteryPowerFormula

    Signed-off-by: Elzbieta Kotulska <[email protected]>
    ela-kotulska-frequenz committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    8f567ba View commit details
    Browse the repository at this point in the history
  11. Fix tests after previous commit

    And fix graph in test_batter_pool_power_two_batteries_per_inverter,
    Previously meters were connected to the grid and had no successors,
    inverters were connected to grid and had no meter.
    Now meters are connected to the inverters.
    
    Signed-off-by: Elzbieta Kotulska <[email protected]>
    ela-kotulska-frequenz committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    014f34f View commit details
    Browse the repository at this point in the history
  12. Add tests for BatteryPowerFormula fallback

    Fix mockMicrogrid: create senders always in the same order.
    Previous solution was working because we had simple graphs.
    
    Signed-off-by: Elzbieta Kotulska <[email protected]>
    ela-kotulska-frequenz committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    226d628 View commit details
    Browse the repository at this point in the history
  13. Add fallback formula feature to ConsumerPowerFormula

    Signed-off-by: Elzbieta Kotulska <[email protected]>
    ela-kotulska-frequenz committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    c9d613e View commit details
    Browse the repository at this point in the history
  14. Add fallback formula feature to GridPowerFormula

    Signed-off-by: Elzbieta Kotulska <[email protected]>
    ela-kotulska-frequenz committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    aab30ee View commit details
    Browse the repository at this point in the history
  15. Use SimplePowerFormula in ProducerPowerFormula

    This should simplify code
    
    Signed-off-by: Elzbieta Kotulska <[email protected]>
    ela-kotulska-frequenz committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    1731ad4 View commit details
    Browse the repository at this point in the history
  16. Move latest_sample from FallbackFormulaMetricFetcher to MetricFetcher

    Because that's where it is used.
    
    Signed-off-by: Elzbieta Kotulska <[email protected]>
    ela-kotulska-frequenz committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    c70ea97 View commit details
    Browse the repository at this point in the history