Skip to content

Commit d90fd1f

Browse files
committed
Fix bug
1 parent 374f114 commit d90fd1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/tests/test_beagle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,8 @@ def run_beagle(ref_h, query_h, pos):
373373
"""
374374
assert ref_h.shape[0] == len(pos)
375375
assert query_h.shape[0] == len(pos)
376-
genotyped_pos_idx = np.where(query_h != -1)
377-
imputed_pos_idx = np.where(query_h == -1)
376+
genotyped_pos_idx = np.where(query_h != -1)[0]
377+
imputed_pos_idx = np.where(query_h == -1)[0]
378378
assert len(genotyped_pos_idx) > 0
379379
assert len(imputed_pos_idx) > 0
380380
genotyped_pos = pos[genotyped_pos_idx]

0 commit comments

Comments
 (0)