apply_parallel, dart call compute_meta(), so I got a empty array.
Author: g9164313Created Sep 22, 2026Updated Sep 22, 2026
Labels:bug: Bug
Description:
As title,
In file, apply_parallel.py, line 209,
res = darr.map_overlap(wrapped_func, depth, boundary=mode, dtype=dtype)
But, Dask 2026.8, there is a parameter called 'meta'. If it is None, 'compute_meta' would be called, see line 300, in blockwise.py. So I got a empty array.
Way to reproduce:
def task(img):
# img is array([], shape=(0,0), dtype=uint8)
return img
vol = np.full((512,512),32,dtype=np.uint8)
img = ski.util.apply_parallel(task,vol,chunks=(16,16),dtype=np.uint8)Version information:
3.10.12 (main, Jun 22 2026, 18:55:27) [GCC 11.4.0]
Linux-6.8.0-136-generic-x86_64-with-glibc2.35
scikit-image version: 0.25.2
numpy version: 2.2.6
dask version: 2026.8.0Source: scikit-image/scikit-image