mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-04-19 08:55:15 +00:00
PreCommit Fixed
This commit is contained in:
parent
cfbe7130e7
commit
3f064ba5ef
@ -1,12 +1,15 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import json
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
import numpy as np
|
||||||
|
|
||||||
|
from akkudoktoreos.class_numpy_encoder import NumpyEncoder
|
||||||
|
|
||||||
# Import necessary modules from the project
|
# Import necessary modules from the project
|
||||||
from akkudoktoreos.class_optimize import optimization_problem
|
from akkudoktoreos.class_optimize import optimization_problem
|
||||||
from akkudoktoreos.visualize import *
|
from akkudoktoreos.visualize import visualisiere_ergebnisse
|
||||||
from akkudoktoreos.class_numpy_encoder import *
|
|
||||||
start_hour = 0
|
start_hour = 0
|
||||||
|
|
||||||
# PV Forecast (in W)
|
# PV Forecast (in W)
|
||||||
@ -289,8 +292,11 @@ elapsed_time = end_time - start_time
|
|||||||
print(f"Elapsed time: {elapsed_time:.4f} seconds")
|
print(f"Elapsed time: {elapsed_time:.4f} seconds")
|
||||||
|
|
||||||
|
|
||||||
|
ac_charge, dc_charge, discharge = (
|
||||||
ac_charge, dc_charge, discharge = (ergebnis["ac_charge"],ergebnis["dc_charge"],ergebnis["discharge_allowed"])
|
ergebnis["ac_charge"],
|
||||||
|
ergebnis["dc_charge"],
|
||||||
|
ergebnis["discharge_allowed"],
|
||||||
|
)
|
||||||
|
|
||||||
visualisiere_ergebnisse(
|
visualisiere_ergebnisse(
|
||||||
gesamtlast,
|
gesamtlast,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user