Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
rzlim08 committed Jul 29, 2024
1 parent 890bbcb commit 605e92a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/idseq_utils/idseq_utils/batch_run_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,13 @@ def _db_chunks(bucket: str, prefix):
for obj in page["Contents"]:
yield obj["Key"]


def count_generator(gen):
gen, gen_copy = tee(gen)
generator_length = sum(1 for _ in gen_copy)
return generator_length, gen


def run_alignment(
input_dir: str,
db_path: str,
Expand Down

0 comments on commit 605e92a

Please sign in to comment.