Skip to content

Commit 4f5a969

Browse files
committed
Added a note about same dtypes in expressions
1 parent 3be7455 commit 4f5a969

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/blosc2/lazyexpr.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,6 +1294,9 @@ def fast_eval( # noqa: C901
12941294

12951295
if use_miniexpr:
12961296
op_dtypes = {op.dtype for op in operands.values() if isinstance(op, blosc2.NDArray)}
1297+
# This is for avoiding type casting issues in miniexpr, like in:
1298+
# tests/ndarray/test_lazyexpr_fields.py::test_where_fusion6[dtype_fixture0-shape_fixture0-chunks_blocks_fixture0]
1299+
# TODO: remove this restriction when miniexpr supports type casting better
12971300
if len(op_dtypes) > 1:
12981301
use_miniexpr = False
12991302
# Avoid padding issues except for 1D arrays (contiguous along the only axis).

0 commit comments

Comments
 (0)