Skip to content

Commit

Permalink
Not all optuna imports are guarded #530
Browse files Browse the repository at this point in the history
  • Loading branch information
blankjul committed Dec 21, 2023
1 parent 3675c79 commit e446a53
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pymoo/algorithms/soo/nonconvex/optuna.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import logging

from optuna.logging import get_logger

from pymoo.util.optimum import filter_optimum

try:
import optuna
from optuna.samplers import TPESampler
from optuna.logging import get_logger
except:
raise Exception("Please install optuna: pip install optuna")

Expand Down

0 comments on commit e446a53

Please sign in to comment.