Skip to content

Commit

Permalink
Make all objective functions dictionaries for testing (#1145)
Browse files Browse the repository at this point in the history
  • Loading branch information
anamileva authored Aug 23, 2024
1 parent 3bd28c9 commit 50a6e16
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 152 deletions.
10 changes: 0 additions & 10 deletions gridpath/run_scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,16 +545,6 @@ def solve_sequentially(
objective_values=objective_values,
)

# TODO: Should probably just remove this logic here and have a
# dictionary for all objective functions
if len(objective_values.keys()) == 1:
objective_values = objective_values[list(objective_values.keys())[0]]
if isinstance(objective_values, dict):
if len(objective_values.keys()) == 1:
objective_values = objective_values[
list(objective_values.keys())[0]
]

return objective_values


Expand Down
Loading

0 comments on commit 50a6e16

Please sign in to comment.