From cb2ae3bff38c95b756deecffac71fe8424db53f6 Mon Sep 17 00:00:00 2001 From: gdiwt Date: Mon, 6 Jan 2025 13:38:11 +0100 Subject: [PATCH] avoid linting error --- bofire/utils/torch_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bofire/utils/torch_tools.py b/bofire/utils/torch_tools.py index 2ac00d24..8932334a 100644 --- a/bofire/utils/torch_tools.py +++ b/bofire/utils/torch_tools.py @@ -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(