mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-09-13 07:21:16 +00:00
Soc 1 hour shift fixed + some german -> english translations in ems
This commit is contained in:
committed by
Dominique Lasserre
parent
053e60aca4
commit
54eae5a871
@@ -239,7 +239,7 @@ def create_ems_instance() -> EnergieManagementSystem:
|
||||
gesamtlast=gesamtlast,
|
||||
),
|
||||
inverter=inverter,
|
||||
eauto=eauto,
|
||||
ev=eauto,
|
||||
home_appliance=home_appliance,
|
||||
)
|
||||
|
||||
@@ -252,7 +252,7 @@ def test_simulation(create_ems_instance):
|
||||
|
||||
# Simulate starting from hour 1 (this value can be adjusted)
|
||||
|
||||
result = ems.simuliere(start_stunde=start_hour)
|
||||
result = ems.simulate(start_hour=start_hour)
|
||||
|
||||
# visualisiere_ergebnisse(
|
||||
# ems.gesamtlast,
|
||||
@@ -338,11 +338,11 @@ def test_simulation(create_ems_instance):
|
||||
|
||||
# Check the values in 'akku_soc_pro_stunde'
|
||||
assert (
|
||||
result["akku_soc_pro_stunde"][-1] == 28.675
|
||||
), "The value at index -1 of 'akku_soc_pro_stunde' should be 28.675."
|
||||
result["akku_soc_pro_stunde"][-1] == 42.151590909090906
|
||||
), "The value at index -1 of 'akku_soc_pro_stunde' should be 42.151590909090906."
|
||||
assert (
|
||||
result["akku_soc_pro_stunde"][1] == 25.379090909090905
|
||||
), "The value at index 1 of 'akku_soc_pro_stunde' should be 25.379090909090905."
|
||||
result["akku_soc_pro_stunde"][1] == 60.08659090909091
|
||||
), "The value at index 1 of 'akku_soc_pro_stunde' should be 60.08659090909091."
|
||||
|
||||
# Check home appliances
|
||||
assert (
|
||||
|
Reference in New Issue
Block a user