From 68b52cf5f869a3adffa167cec1428bc9323a29e0 Mon Sep 17 00:00:00 2001 From: Cody Baker Date: Fri, 30 Aug 2024 23:24:51 -0400 Subject: [PATCH] debug argument defaults --- src/pyflask/manageNeuroconv/manage_neuroconv.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pyflask/manageNeuroconv/manage_neuroconv.py b/src/pyflask/manageNeuroconv/manage_neuroconv.py index 007491060..08047e58d 100644 --- a/src/pyflask/manageNeuroconv/manage_neuroconv.py +++ b/src/pyflask/manageNeuroconv/manage_neuroconv.py @@ -1277,7 +1277,9 @@ def upload_multiple_filesystem_objects_to_dandi(**kwargs) -> list[Path]: del innerKwargs["filesystem_paths"] innerKwargs["nwb_folder_path"] = tmp_folder_path results = upload_folder_to_dandi(**innerKwargs) - rmtree(tmp_folder_path) + + rmtree(tmp_folder_path, ignore_errors=True) + return results @@ -1305,8 +1307,8 @@ def upload_folder_to_dandi( nwb_folder_path=Path(nwb_folder_path), staging=staging, cleanup=cleanup, - number_of_jobs=number_of_jobs, - number_of_threads=number_of_threads, + number_of_jobs=number_of_jobs or 1, + number_of_threads=number_of_threads or 1, )