Skip to content

Commit

Permalink
Do not sort matched pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
clbarnes committed Apr 14, 2021
1 parent c5aee05 commit e6d6346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion navis/nbl/smat.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def _counts_array(self, idx_pairs, threads=None):
return counts

def _build(self, threads) -> Tuple[List[np.ndarray], np.ndarray]:
matching_pairs = sorted(set(self._yield_matching_pairs()))
matching_pairs = list(set(self._yield_matching_pairs()))
# need to know the eventual distdot count
# so we know how many non-matching pairs to draw
q_idx_count = Counter(p[0] for p in matching_pairs)
Expand Down

0 comments on commit e6d6346

Please sign in to comment.