Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Mar 10, 2024
1 parent 57ad631 commit 971caeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tests/beagle_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def interpolate_allele_probs(
probs[i, a] += (1 - w) * state_mat[k, j]
# Rescale probabilities.
# TODO: Check if this is necessary. Could this be a subtle source of error?
assert np.all(np.sum(probs, axis=1) > 0), "Sum of allele probabilities is not >= 0."
assert np.all(np.sum(probs, axis=1) > 0), "Sum of allele probabilities is not > 0."
probs_rescaled = probs / np.sum(probs, axis=1)[:, np.newaxis]
if return_weights:
return (probs_rescaled, weights)
Expand Down

0 comments on commit 971caeb

Please sign in to comment.