You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
One can generate a lazy expression which is invalid due to operand data types, but this is not manifested until one tries to compute.
To Reproduce
import blosc2
N = 1_000
dtype = 'float64'
a = blosc2.linspace(0, 1, N * N, dtype=dtype, shape=(N, N))
b = blosc2.linspace(1, 2, N * N, dtype=dtype, shape=(N, N))
le1 = a + 2
le2 = le1 & (b < 0) #Does not fail
le2.compute() #Does fail
Expected behavior
Perhaps when checking/validating the expression, one should perform some additional checks, and the lazy expression does not generate successfully.
The text was updated successfully, but these errors were encountered:
Describe the bug
One can generate a lazy expression which is invalid due to operand data types, but this is not manifested until one tries to compute.
To Reproduce
Expected behavior
Perhaps when checking/validating the expression, one should perform some additional checks, and the lazy expression does not generate successfully.
The text was updated successfully, but these errors were encountered: