Skip to content

Commit

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

if allowed_objectives is not None:
if not any([isinstance(feat.objective, allowed_objective_) for allowed_objective_ in 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 14d504c

Please sign in to comment.