Skip to content

Commit 0c80218

Browse files
committed
Load Xenium mask labels using Dask
1 parent e793a1b commit 0c80218

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/spatialdata_io/readers/xenium.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ def _get_labels_and_indices_mapping(
458458

459459
with zarr_open(str(tmpdir), mode="r") as z:
460460
# get the labels
461-
masks = z["masks"][f"{mask_index}"][...]
461+
masks = da.from_array(z["masks"][f"{mask_index}"])
462462
labels = Labels2DModel.parse(
463463
masks, dims=("y", "x"), transformations={"global": Identity()}, **labels_models_kwargs
464464
)

0 commit comments

Comments
 (0)