Skip to content

Commit 2c0e18e

Browse files
committed
Raise IncompatibilityError instead of NotImplementedError
1 parent 8ddea54 commit 2c0e18e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

baybe/recommenders/pure/bayesian/botorch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def _recommend_continuous_without_cardinality_constraints(
355355
raise IncompatibilityError(
356356
"The ``sequential_continuous`` flag is set to ``False``, but "
357357
"interpoint constraints are present in the continuous subspace. This is"
358-
" not supported. Please set 'sequential_continuous' to True."
358+
" not supported. Please set ``sequential_continuous`` to ``True``."
359359
)
360360

361361
# NOTE: The explicit `or None` conversion is added as an additional safety net
@@ -421,7 +421,7 @@ def _recommend_hybrid(
421421
# TODO Defining interpoint constraints for hybrid spaces is probably not
422422
# that hard, but should be investigated in a follow up PR.
423423
if searchspace.continuous.has_interpoint_constraints:
424-
raise NotImplementedError(
424+
raise IncompatibilityError(
425425
"Interpoint constraints are not available in hybrid spaces."
426426
)
427427
if (

0 commit comments

Comments
 (0)