Skip to content

Commit ac75725

Browse files
committed
Allow broader miniexpr use by getting rid of unnecessary guards (II)
1 parent 7d68e55 commit ac75725

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

src/blosc2/lazyexpr.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,17 +1283,6 @@ def fast_eval( # noqa: C901
12831283
iter_disk = False
12841284

12851285
# Check whether we can use miniexpr
1286-
# Miniexpr only supports a subset of functions - disable for unsupported ones
1287-
unsupported_funcs = [
1288-
"clip",
1289-
"maximum",
1290-
"minimum",
1291-
"contains",
1292-
] + reducers # miniexpr doesn't support reduction functions
1293-
1294-
if isinstance(expression, str) and any(func in expression for func in unsupported_funcs):
1295-
use_miniexpr = False
1296-
12971286
if use_miniexpr:
12981287
# Avoid padding issues except for 1D arrays (contiguous along the only axis).
12991288
if len(shape) != 1 and builtins.any(s % c != 0 for s, c in zip(shape[1:], chunks[1:], strict=True)):

0 commit comments

Comments
 (0)