From 00e0e51eb57622bfc127a9f104ee93dc78e15c9c Mon Sep 17 00:00:00 2001 From: Normann Date: Thu, 10 Oct 2024 16:16:28 +0200 Subject: [PATCH] to_dict renamed --- src/akkudoktoreos/class_akku.py | 2 +- src/akkudoktoreos/class_optimize.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/akkudoktoreos/class_akku.py b/src/akkudoktoreos/class_akku.py index 6b840cb0..dd711e43 100644 --- a/src/akkudoktoreos/class_akku.py +++ b/src/akkudoktoreos/class_akku.py @@ -35,7 +35,7 @@ def __init__( self.min_soc_wh = (self.min_soc_prozent / 100) * self.kapazitaet_wh self.max_soc_wh = (self.max_soc_prozent / 100) * self.kapazitaet_wh - def to_dict(self): + def return_dict(self): return { "kapazitaet_wh": self.kapazitaet_wh, "start_soc_prozent": self.start_soc_prozent, diff --git a/src/akkudoktoreos/class_optimize.py b/src/akkudoktoreos/class_optimize.py index 0185a998..3df4a446 100644 --- a/src/akkudoktoreos/class_optimize.py +++ b/src/akkudoktoreos/class_optimize.py @@ -364,7 +364,7 @@ def optimierung_ems( "discharge_hours_bin": discharge_hours_bin, "eautocharge_hours_float": eautocharge_hours_float, "result": o, - "eauto_obj": ems.eauto.to_dict(), + "eauto_obj": ems.eauto.return_dict(), "start_solution": start_solution, "spuelstart": spuelstart_int, "simulation_data": o,