mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-06-28 00:46:53 +00:00
Ruff
This commit is contained in:
parent
004e1f3dc7
commit
38a457a3dc
@ -279,16 +279,16 @@ def test_simulation(create_ems_instance):
|
|||||||
), "The value at index 12 of 'Last_Wh_pro_Stunde' should be 1132.03."
|
), "The value at index 12 of 'Last_Wh_pro_Stunde' should be 1132.03."
|
||||||
|
|
||||||
# Verify that the value at index 0 is 'None'
|
# Verify that the value at index 0 is 'None'
|
||||||
assert (
|
assert np.isnan(
|
||||||
np.isnan(result["Last_Wh_pro_Stunde"][0])
|
result["Last_Wh_pro_Stunde"][0]
|
||||||
), "The value at index 0 of 'Last_Wh_pro_Stunde' should be None."
|
), "The value at index 0 of 'Last_Wh_pro_Stunde' should be None."
|
||||||
|
|
||||||
# Check that 'Netzeinspeisung_Wh_pro_Stunde' and 'Netzbezug_Wh_pro_Stunde' are consistent
|
# Check that 'Netzeinspeisung_Wh_pro_Stunde' and 'Netzbezug_Wh_pro_Stunde' are consistent
|
||||||
assert (
|
assert np.isnan(
|
||||||
np.isnan(result["Netzeinspeisung_Wh_pro_Stunde"][0])
|
result["Netzeinspeisung_Wh_pro_Stunde"][0]
|
||||||
), "The value at index 0 of 'Netzeinspeisung_Wh_pro_Stunde' should be None."
|
), "The value at index 0 of 'Netzeinspeisung_Wh_pro_Stunde' should be None."
|
||||||
assert (
|
assert np.isnan(
|
||||||
np.isnan(result["Netzbezug_Wh_pro_Stunde"][0])
|
result["Netzbezug_Wh_pro_Stunde"][0]
|
||||||
), "The value at index 0 of 'Netzbezug_Wh_pro_Stunde' should be None."
|
), "The value at index 0 of 'Netzbezug_Wh_pro_Stunde' should be None."
|
||||||
assert (
|
assert (
|
||||||
result["Netzbezug_Wh_pro_Stunde"][1] == 21679.13
|
result["Netzbezug_Wh_pro_Stunde"][1] == 21679.13
|
||||||
|
Loading…
x
Reference in New Issue
Block a user