Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MRG] remove unnecessary downsampling warnings #1971

Merged
merged 1 commit into from
Apr 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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