Skip to content

Commit

Permalink
avoid linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasHebing committed Jan 6, 2025
1 parent 2716df2 commit cb2ae3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bofire/utils/torch_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ def _x_adapt(feat):
continue

if allowed_objectives is not None:
if not isinstance(feat.objective, tuple(allowed_objectives)):
if not any([isinstance(feat.objective, allowed_objective_) for allowed_objective_ in allowed_objectives]):
continue

callables.append(
Expand Down

0 comments on commit cb2ae3b

Please sign in to comment.