Skip to content

Commit

Permalink
fix getting the length of a generator
Browse files Browse the repository at this point in the history
  • Loading branch information
rzlim08 committed Jul 26, 2024
1 parent d443456 commit 9c5abd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/idseq_utils/idseq_utils/batch_run_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def run_alignment(
]
for chunk_id, db_chunk in enumerate(_db_chunks(db_bucket, db_prefix))
)
with Pool(len(chunks)) as p:
with Pool(len(list(chunks))) as p:
p.starmap(_run_chunk, chunks)
run(["s3parcp", "--recursive", chunk_dir, "chunks"], check=True)
if os.path.exists(os.path.join("chunks", "cache")):
Expand Down

0 comments on commit 9c5abd5

Please sign in to comment.