bitten: update bitten.py

This commit is contained in:
Connor Olding 2022-06-18 04:47:13 +02:00
parent e3db8b5c72
commit 991e72e118

View file

@ -650,7 +650,9 @@ def _bite(
lower = lower if lower.ndim else _repeat(lower)
upper = upper if upper.ndim else _repeat(upper)
new = [(l, u) for _, l, u in zip(range(hyper.dims), lower, upper)]
assert len(new) == hyper.dims, f"length of bounds must equal number of dimensions"
assert (
len(new) == hyper.dims
), f"length of bounds must equal number of dimensions"
linear_bounds += new
elif isinstance(hyper, Bound):
linear_bounds.append(hyper.bounds)