Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Mar 11, 2024
1 parent 89e2869 commit edf6367
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/tests/beagle_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ def interpolate_allele_probs(
for a in alleles:
is_a_in_ref_h = ref_h[i, :] == a
if np.sum(is_a_in_ref_h) == 0:
# This avoids division by zero when getting a threshold adaptively below.
continue
if use_threshold:
# TODO: Check whether this is implemented correctly. Not used by default.
Expand Down

0 comments on commit edf6367

Please sign in to comment.