Skip to content

Commit

Permalink
upd again
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Oct 11, 2024
1 parent 79afb85 commit ddcb049
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/src/index/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,13 @@ pub fn calculate_gather_stats(
) -> Result<GatherResult> {
// get match_mh
let match_mh = match_sig.minhash().expect("cannot retrieve sketch");
let match_mh = match_mh.clone();

eprintln!("XXX 2 {}, {}", match_mh.scaled(), query.scaled());

let max_scaled = max(match_mh.scaled(), query.scaled());
let query = query
.downsample_scaled(max_scaled)
.expect("cannot downsample query");
let match_mh = match_mh
.clone()
.downsample_scaled(max_scaled)
.expect("cannot downsample match");

Expand Down

0 comments on commit ddcb049

Please sign in to comment.