Skip to content

Commit 62e8ed8

Browse files
committed
Improve doc
1 parent 47b8ccd commit 62e8ed8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/tests/test_beagle.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ def get_mismatch_prob(pos, miscall_rate=0.0001):
110110
:return: Mismatch probabilities.
111111
:rtype: numpy.ndarray
112112
"""
113+
assert isinstance(miscall_rate, float)
113114
assert 0 <= miscall_rate <= 0.5
114-
mu = np.repeat(miscall_rate, len(pos))
115+
mu = np.zeros(len(pos), dtype=np.float64) + miscall_rate
115116
return mu
116117

117118

0 commit comments

Comments
 (0)