From 797600e31602064606bd8bf109d3f3ea14d653df Mon Sep 17 00:00:00 2001 From: Saiyam26 Date: Fri, 8 Nov 2024 16:08:19 +0530 Subject: [PATCH] solved bug for num_workers not working with None --- scalr/utils/file_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scalr/utils/file_utils.py b/scalr/utils/file_utils.py index cb0da8b..a092df2 100644 --- a/scalr/utils/file_utils.py +++ b/scalr/utils/file_utils.py @@ -105,6 +105,9 @@ def write_chunkwise_data(full_data: Union[AnnData, AnnCollection], if not path.exists(dirpath): os.makedirs(dirpath) + if not num_workers: + num_workers = 1 + if not sample_inds: sample_inds = list(range(len(full_data)))