Skip to content

Commit

Permalink
take min of max reads and num reads when max reads used
Browse files Browse the repository at this point in the history
  • Loading branch information
iiSeymour committed Mar 31, 2024
1 parent b571854 commit 073310c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bonito/cli/basecaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ def main(args):

if args.max_reads:
reads = take(reads, args.max_reads)
if num_reads is not None:
num_reads = min(num_reads, args.max_reads)

if args.save_ctc:
reads = (
Expand Down

0 comments on commit 073310c

Please sign in to comment.