diff --git a/package/samplers/ctpe/components.py b/package/samplers/ctpe/components.py index 71a8d6d1..c2018d4f 100644 --- a/package/samplers/ctpe/components.py +++ b/package/samplers/ctpe/components.py @@ -18,7 +18,7 @@ def __call__(self, x: int) -> int: elif self._strategy == "sqrt": n = int(np.ceil(self._beta * np.sqrt(x))) else: - assert "Should not reach." + assert False, "Should not reach." return min(n, 25) @@ -45,4 +45,4 @@ def __call__(self, x: int) -> np.ndarray: weights[:-25] = 1e-12 return weights else: - assert "Should not reach." + assert False, "Should not reach."