Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasHebing committed Jan 7, 2025
1 parent 4056d6a commit 49e08ba
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 any(map(lambda obj: isinstance(feat.objective, obj), allowed_objectives)):
if not any(isinstance(feat.objective, obj) for obj in allowed_objectives):
continue

callables.append(
Expand Down

0 comments on commit 49e08ba

Please sign in to comment.