Skip to content

Commit

Permalink
organize: do not parallelize for a single path
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Sep 5, 2024
1 parent 44e097f commit 90946b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dandi/organize.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ def _get_metadata(path):
return meta

if (
not devel_debug and jobs != 1
not devel_debug and jobs != 1 and not len(paths) == 1
): # Do not use joblib at all if number_of_jobs=1
# Note: It is Python (pynwb) intensive, not IO, so ATM there is little
# to no benefit from Parallel without using multiproc! But that would
Expand Down

0 comments on commit 90946b7

Please sign in to comment.