Closed ArneDefauw closed 8 months ago
this line:
x_labels = _trim_masks(masks=x_labels, depth=depth) https://github.com/saeyslab/napari-sparrow/blob/367ebe41aac096b384b749a7014abcb3930c61b4/src/napari_sparrow/image/segmentation/_segmentation.py#L350C1-L350C64
x_labels = _trim_masks(masks=x_labels, depth=depth)
leads to long dask graph, which took exponentionally long to resolve when having many chunks (>>100)
This pull request fixes this issue
this line:
x_labels = _trim_masks(masks=x_labels, depth=depth)
https://github.com/saeyslab/napari-sparrow/blob/367ebe41aac096b384b749a7014abcb3930c61b4/src/napari_sparrow/image/segmentation/_segmentation.py#L350C1-L350C64leads to long dask graph, which took exponentionally long to resolve when having many chunks (>>100)
This pull request fixes this issue