bitten: update bitten.py
This commit is contained in:
parent
e3db8b5c72
commit
991e72e118
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue