Skip to content

Commit

Permalink
to_dict renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
NormannK committed Oct 10, 2024
1 parent 59dcf8c commit 00e0e51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/akkudoktoreos/class_akku.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/akkudoktoreos/class_optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 00e0e51

Please sign in to comment.