Skip to content

Commit e0541dd

Browse files
committed
Disable complex types for DSL constructor
1 parent 4702ff3 commit e0541dd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/blosc2/ndarray.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5434,7 +5434,8 @@ def kernel_ramp(start, step):
54345434
# We already have the dtype and shape, so return immediately
54355435
return blosc2.zeros(shape, dtype=dtype, **kwargs)
54365436

5437-
if False:
5437+
# Windows and wasm32 does not support complex numbers in DSL
5438+
if False or blosc2.isdtype(dtype, "complex floating"):
54385439
lshape = (math.prod(shape),)
54395440
lazyarr = blosc2.lazyudf(arange_fill, (start, stop, step), dtype=dtype, shape=lshape)
54405441

0 commit comments

Comments
 (0)