Fix check for single-objective study

This commit is contained in:
contramundum53
2023-06-22 15:55:12 +09:00
committed by GitHub
parent 828cbef1ae
commit e2ae366ded
+1 -1
View File
@@ -186,7 +186,7 @@ def create_app(
trials = get_trials(storage, study_id)
# TODO(c-bata): Cache best_trials
if summary.directions == 1:
if len(summary.directions) == 1:
best_trials = [storage.get_best_trial(study_id)]
else:
best_trials = get_pareto_front_trials(trials=trials, directions=summary.directions)