Skip to content

Commit 7d68e55

Browse files
committed
Allow broader miniexpr use by getting rid of unnecessary guards
1 parent 2fd4c71 commit 7d68e55

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/blosc2/lazyexpr.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,11 +1303,6 @@ def fast_eval( # noqa: C901
13031303
if not (isinstance(op, blosc2.NDArray) and op.urlpath is None and out is None):
13041304
use_miniexpr = False
13051305
break
1306-
# Ensure blocks fit exactly in chunks for the n-dim case, except for the first dimension
1307-
blocks_fit = builtins.all(c % b == 0 for c, b in zip(op.chunks[1:], op.blocks[1:], strict=True))
1308-
if len(op.shape) != 1 and not blocks_fit:
1309-
use_miniexpr = False
1310-
break
13111306

13121307
if use_miniexpr:
13131308
cparams = kwargs.pop("cparams", blosc2.CParams())

0 commit comments

Comments
 (0)