Skip to content

Commit

Permalink
Fix assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Sep 1, 2023
1 parent 4899426 commit 32c82a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/tests/beagle.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,10 @@ def compute_state_probability_matrix(fm, bm, ref_h, query_h):
assert m == len(query_h)
assert (m, h) == fm.shape
assert (m, h) == bm.shape
assert np.any(fm < 0), "Forward probability matrix has negative values."
assert np.any(np.isnan(fm)), "Forward probability matrix has NaN values."
assert np.any(bm < 0), "Backward probability matrix has negative values."
assert np.any(np.isnan(bm)), "Backward probability matrix has NaN values."
assert not np.any(fm < 0), "Forward probability matrix has negative values."
assert not np.any(np.isnan(fm)), "Forward probability matrix has NaN values."
assert not np.any(bm < 0), "Backward probability matrix has negative values."
assert not np.any(np.isnan(bm)), "Backward probability matrix has NaN values."
sm = np.zeros((m, h), dtype=np.float64)
for i in np.arange(m - 1, -1, -1):
for j in np.arange(h):
Expand Down

0 comments on commit 32c82a8

Please sign in to comment.