Skip to content

Commit

Permalink
Update webknossos_annotation.py
Browse files Browse the repository at this point in the history
change parameter of dst to out
  • Loading branch information
jingjingwu1225 authored Nov 22, 2024
1 parent 732a71c commit f08623f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions linc_convert/modalities/wk/webknossos_annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
def convert(
wkw_dir: str = None,
ome_dir: str = None,
dst: str = None,
out: str = None,
dic: str = None,
*,
chunk: int = 1024,
Expand All @@ -48,7 +48,7 @@ def convert(
in .wkw format. For example: .../annotation_folder/data_Volume.
ome_dir : str
Path to the underlying ome.zarr dataset, following the BIDS naming standard.
dst : str
out : str
Path to the output directory for saving the converted ome.zarr.
The ome.zarr file name is generated automatically based on ome_dir
and the initials of the annotator.
Expand Down Expand Up @@ -93,7 +93,7 @@ def convert(
# setup save info
basename = os.path.basename(ome_dir)[:-9]
initials = wkw_dir.split("/")[-2][:2]
out = os.path.join(dst, basename + "_dsec_" + initials + ".ome.zarr")
out = os.path.join(out, basename + "_dsec_" + initials + ".ome.zarr")
if os.path.exists(out):
shutil.rmtree(out)
os.makedirs(out, exist_ok=True)
Expand Down

0 comments on commit f08623f

Please sign in to comment.