Skip to content

Commit

Permalink
experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
ACEnglish committed Mar 25, 2024
1 parent b52ef81 commit ec2caab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions truvari/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,9 @@ def build_matrix(self, base_variants, comp_variants, chunk_id=0, skip_gt=False):
mat = self.matcher.build_match(
b, c, [f"{chunk_id}.{bid}", f"{chunk_id}.{cid}"],
skip_gt, self.short_circuit)
# Not allowing self matches
if truvari.entry_to_hash(b) == truvari.entry_to_hash(c):
mat.state = False
logging.debug("Made mat -> %s", mat)
base_matches.append(mat)
match_matrix.append(base_matches)
Expand Down

0 comments on commit ec2caab

Please sign in to comment.