Skip to content

Commit

Permalink
remove unnecessary downsampling warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Apr 22, 2022
1 parent 2d1fc69 commit ac2332c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sourmash/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ def gather(args):
error('query signature needs to be created with --scaled')
sys.exit(-1)

if args.scaled:
if args.scaled and args.scaled != query.minhash.scaled:
notify(f'downsampling query from scaled={query.minhash.scaled} to {int(args.scaled)}')
query.minhash = query.minhash.downsample(scaled=args.scaled)

Expand Down Expand Up @@ -880,7 +880,7 @@ def multigather(args):
error('query signature needs to be created with --scaled; skipping')
continue

if args.scaled:
if args.scaled and args.scaled != query.minhash.scaled:
notify(f'downsampling query from scaled={query.minhash.scaled} to {int(args.scaled)}')
query.minhash = query.minhash.downsample(scaled=args.scaled)

Expand Down Expand Up @@ -1143,7 +1143,7 @@ def prefetch(args):
if query_mh.track_abundance:
query_mh = query_mh.flatten()

if args.scaled:
if args.scaled and args.scaled != query_mh.scaled:
notify(f'downsampling query from scaled={query_mh.scaled} to {int(args.scaled)}')
query_mh = query_mh.downsample(scaled=args.scaled)

Expand Down

0 comments on commit ac2332c

Please sign in to comment.