diff --git a/baybe/campaign.py b/baybe/campaign.py index dbbb69cab..6bd36585b 100644 --- a/baybe/campaign.py +++ b/baybe/campaign.py @@ -310,6 +310,9 @@ def toggle_discrete_candidates( # noqa: DOC501 elif isinstance(constraints, Collection) and is_all_instance( constraints, DiscreteConstraint ): + # TODO: Should be taken over by upcoming `SubspaceDiscrete.filter` method, + # automatically choosing the appropriate backend (polars/pandas/...) + # Filter the search space dataframe according to the given constraint idx = reduce( lambda x, y: x.intersection(y), (c.get_valid(df) for c in constraints)