Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Oct 12, 2024
1 parent 6eb86a3 commit b47a6c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/src/sketch/minhash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ impl KmerMinHash {
// create a downsampled copy of self
pub fn downsample_max_hash(self, max_hash: u64) -> Result<KmerMinHash, Error> {
if self.max_hash == 0 {
// does this make sense? @CTB
// CTB: this is a num minhash. Should we just blithely return?
Ok(self)
} else {
let scaled = scaled_for_max_hash(max_hash);
Expand Down Expand Up @@ -1543,6 +1543,7 @@ impl KmerMinHashBTree {
// create a downsampled copy of self
pub fn downsample_max_hash(self, max_hash: u64) -> Result<KmerMinHashBTree, Error> {
if self.max_hash == 0 {
// CTB: this is a num minhash. Just blithely return.
Ok(self)
} else {
let scaled = scaled_for_max_hash(max_hash);
Expand Down

0 comments on commit b47a6c4

Please sign in to comment.