Skip to content

Commit

Permalink
Merge branch 'fix-max-reads-num-reads' into 'master'
Browse files Browse the repository at this point in the history
take min of max reads and num reads when max reads used

See merge request machine-learning/bonito!171
  • Loading branch information
David Newman committed Apr 9, 2024
2 parents 22f4ef8 + 073310c commit 0ba190f
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 0ba190f

Please sign in to comment.