Skip to content

Commit a59841d

Browse files
committed
Fix bug
1 parent 7a4e726 commit a59841d

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
@@ -274,8 +274,8 @@ def compute_state_probability_matrix(fm, bm, ref_h, query_h, rho, mu):
274274
assert fm.shape == (m, h)
275275
assert bm.shape == (m, h)
276276
# Check all biallelic sites
277-
assert np.unique(ref_h) == np.array([0, 1])
278-
assert np.unique(query_h) == np.array([0, 1])
277+
assert np.all(np.isin(np.unique(ref_h), [0, 1]))
278+
assert np.all(np.isin(np.unique(query_h), [-1, 0, 1]))
279279
sm = np.zeros((m, h), dtype=np.float64) # HMM state probability matrix
280280
fwd_hap_probs = np.zeros((m, 2), dtype=np.float64)
281281
bwd_hap_probs = np.zeros((m, 2), dtype=np.float64)

0 commit comments

Comments
 (0)