Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Jan 14, 2024
1 parent b4bb288 commit 916078f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/tests/beagle_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@ def get_mismatch_prob(pos, error_rate):
:return: Mismatch probabilities.
:rtype: numpy.ndarray
"""
if error_rate >= 0.5:
error_rate = 0.5
MAX_ERROR_RATE = 0.5
if error_rate >= MAX_ERROR_RATE:
error_rate = MAX_ERROR_RATE
mu = np.zeros(len(pos), dtype=np.float32) + error_rate
return mu

Expand Down

0 comments on commit 916078f

Please sign in to comment.