Skip to content

Commit 2b1327d

Browse files
committed
Reductions can handle padding in the first dimension now
1 parent 36e743c commit 2b1327d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/blosc2/lazyexpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2006,7 +2006,7 @@ def reduce_slices( # noqa: C901
20062006
# Only behaved partitions are supported in miniexpr reductions
20072007
if use_miniexpr:
20082008
# Avoid padding issues except for 1D arrays (contiguous along the only axis).
2009-
if len(shape) != 1 and builtins.any(s % c != 0 for s, c in zip(shape, chunks, strict=True)):
2009+
if len(shape) != 1 and builtins.any(s % c != 0 for s, c in zip(shape[1:], chunks[1:], strict=True)):
20102010
use_miniexpr = False
20112011
if use_miniexpr and isinstance(expression, str):
20122012
has_complex = any(

0 commit comments

Comments
 (0)