Skip to content

Commit

Permalink
Improve doc
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Aug 31, 2023
1 parent 47b8ccd commit 62e8ed8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/tests/test_beagle.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ def get_mismatch_prob(pos, miscall_rate=0.0001):
:return: Mismatch probabilities.
:rtype: numpy.ndarray
"""
assert isinstance(miscall_rate, float)
assert 0 <= miscall_rate <= 0.5
mu = np.repeat(miscall_rate, len(pos))
mu = np.zeros(len(pos), dtype=np.float64) + miscall_rate
return mu


Expand Down

0 comments on commit 62e8ed8

Please sign in to comment.