Skip to content

Commit

Permalink
fixed dist compare bug
Browse files Browse the repository at this point in the history
  • Loading branch information
colganwi committed Dec 14, 2024
1 parent 771b420 commit f350655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pycea/tl/distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def _get_pairs_for_group(idx, shared, dense, sample_n):
pairs = [(i, j) for i in idx for j in idx]
else:
row, col = shared[idx, :][:, idx].nonzero()
pairs = list(zip(row, col))
pairs = list(zip(idx[row], idx[col]))
if sample_n is not None:
if sample_n > len(pairs):
raise ValueError("Sample size is larger than the number of pairs.")
Expand Down

0 comments on commit f350655

Please sign in to comment.