Skip to content

Commit

Permalink
fix downsampling printout
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 fc5944d
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 fc5944d

Please sign in to comment.