Skip to content

Commit df26b2b

Browse files
committed
Fix test_hash_array
1 parent 87951df commit df26b2b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sgkit/tests/test_popgen.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,9 @@ def test_hash_array(n_rows, n_cols):
712712
_, expected_inverse, expected_counts = np.unique(
713713
x, axis=0, return_inverse=True, return_counts=True
714714
)
715+
# following is needed due to https://github.com/numpy/numpy/issues/26738
716+
# (workaround from https://github.com/lmcinnes/umap/issues/1138)
717+
expected_inverse = expected_inverse.reshape(-1)
715718

716719
# hash columns, then find unique column counts using the hash values
717720
h = hash_array(x)

0 commit comments

Comments
 (0)