Skip to content

Commit

Permalink
fix downsampling printout (#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb authored and luizirber committed Dec 21, 2018
1 parent 954d729 commit 726913b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sourmash/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,8 +828,9 @@ def search(args):
error('cannot downsample a signature not created with --scaled')
sys.exit(-1)

notify('downsampling query from scaled={} to {}',
query.minhash.scaled, int(args.scaled))
if args.scaled != query.minhash.scaled:
notify('downsampling query from scaled={} to {}',
query.minhash.scaled, int(args.scaled))
query.minhash = query.minhash.downsample_scaled(args.scaled)

# set up the search databases
Expand Down

0 comments on commit 726913b

Please sign in to comment.