We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ab60cd commit 9cef7b3Copy full SHA for 9cef7b3
src/fractal_helper_tasks/convert_2D_segmentation_to_3D.py
@@ -175,7 +175,7 @@ def convert_2D_segmentation_to_3D(
175
176
# 1a) Load a 2D label image
177
label_img = da.from_zarr(f"{zarr_url}/labels/{label_name}/{level}")
178
- chunks = label_img.chunksize
+ chunks = list(label_img.chunksize)
179
180
# 1b) Get number z planes & Z spacing from 3D OME-Zarr file
181
with zarr.open(zarr_3D_url, mode="rw+") as zarr_img:
@@ -188,6 +188,7 @@ def convert_2D_segmentation_to_3D(
188
chunks[-3] = z_chunks
189
else:
190
chunks[-3] = z_chunk_3d
191
+ chunks = tuple(chunks)
192
193
image_meta = load_NgffImageMeta(zarr_3D_url)
194
z_pixel_size = image_meta.get_pixel_sizes_zyx(level=0)[0]
0 commit comments