Skip to content

Commit 2dd1007

Browse files
committed
Add position check
1 parent cdf4b45 commit 2dd1007

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/tests/test_beagle.py

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def convert_to_genetic_map_position(pos):
5151
:return: Genetic map positions.
5252
:rtype: numpy.ndarray
5353
"""
54+
assert 0 <= np.min(pos)
5455
return pos / 1e6
5556

5657

0 commit comments

Comments
 (0)