From c7766603869776fe68cb1fd020f140339c26dfde Mon Sep 17 00:00:00 2001 From: Chris Barnes Date: Wed, 14 Apr 2021 14:13:34 +0100 Subject: [PATCH] Do not sort matched pairs --- navis/nbl/smat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/navis/nbl/smat.py b/navis/nbl/smat.py index 6beae345..7e1f2d3b 100644 --- a/navis/nbl/smat.py +++ b/navis/nbl/smat.py @@ -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)