Skip to content

Commit

Permalink
solved bug for num_workers not working with None
Browse files Browse the repository at this point in the history
  • Loading branch information
Saiyam26 committed Nov 8, 2024
1 parent ac30dce commit 797600e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scalr/utils/file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Expand Down

0 comments on commit 797600e

Please sign in to comment.