Skip to content

Commit 1c7808b

Browse files
committed
Update level default & manifest
1 parent d5b0d6d commit 1c7808b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/fractal_helper_tasks/__FRACTAL_MANIFEST__.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@
7676
"description": "Name of the label to copy from 2D OME-Zarr to 3D OME-Zarr"
7777
},
7878
"level": {
79-
"default": 0,
79+
"default": "0",
8080
"title": "Level",
8181
"type": "string",
82-
"description": "Level of the 2D OME-Zarr label to copy from"
82+
"description": "Level of the 2D OME-Zarr label to copy from. Valid choices are \"0\", \"1\", etc. (depending on which levels are available in the OME-Zarr label)."
8383
},
8484
"tables_to_copy": {
8585
"items": {

src/fractal_helper_tasks/convert_2D_segmentation_to_3D.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
def convert_2D_segmentation_to_3D(
1616
zarr_url: str,
1717
label_name: str,
18-
level: str = 0,
18+
level: str = "0",
1919
tables_to_copy: Optional[list[str]] = None,
2020
new_label_name: Optional[str] = None,
2121
new_table_names: Optional[list] = None,
@@ -186,7 +186,6 @@ def convert_2D_segmentation_to_3D(
186186
if table.type() == "roi_table" or table.type() == "masking_ROI_table":
187187
for roi in table.rois():
188188
roi.z_length = z_extent
189-
190189
else:
191190
# For some reason, I need to load the table explicitly before
192191
# I can write it again

0 commit comments

Comments
 (0)