Skip to content

Commit 8d5126b

Browse files
committed
Take sum of probs
1 parent 690bb18 commit 8d5126b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/tests/beagle_numba.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,8 @@ def interpolate_allele_probs(
566566
# Threshold based on "the number of subsets in the partition Am of H".
567567
threshold_Am = np.sum(is_a_in_ref_h)
568568
_MIN_THRESHOLD = min(0.005, 1 / threshold_Am)
569-
sum_probs_a_k = state_mat[k, is_a_in_ref_h]
570-
sum_probs_a_kM1 = state_mat[k - 1, is_a_in_ref_h]
569+
sum_probs_a_k = np.sum(state_mat[k, is_a_in_ref_h])
570+
sum_probs_a_kM1 = np.sum(state_mat[k - 1, is_a_in_ref_h])
571571
if k == 0:
572572
# See 'setFirstAlleleProbs' in 'LSHapBaum.java'.
573573
assert w == 1.0, "Weight should be 1.0."

0 commit comments

Comments
 (0)