Skip to content

Commit

Permalink
Fixup data api logic
Browse files Browse the repository at this point in the history
  • Loading branch information
yngve-sk committed Jan 7, 2025
1 parent 47ddb2d commit 2d16562
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/everest/api/everest_data_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def single_objective_values(self):
]
)
objectives = self._ever_storage.data.objective_functions
objective_names = objectives["objective_name"].unique().to_list()

for o in objectives.to_dicts():
batch_datas = batch_datas.with_columns(
Expand All @@ -154,7 +155,7 @@ def single_objective_values(self):
"batch",
"objective",
"accepted",
*self._ever_storage.data.objective_functions["objective_name"].to_list(),
*(objective_names if len(objective_names) > 1 else []),
]

return (
Expand Down

0 comments on commit 2d16562

Please sign in to comment.