Skip to content

Commit

Permalink
Assert that the site positions are 1-based
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Sep 12, 2023
1 parent 0d25110 commit bd32f9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/tests/beagle.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def convert_to_genetic_map_position(pos):
:return: Genetic map positions.
:rtype: numpy.ndarray
"""
assert 0 <= np.min(pos)
assert 0 < np.min(pos)
return pos / 1e6


Expand Down
2 changes: 1 addition & 1 deletion python/tests/beagle_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def convert_to_genetic_map_position(pos):
:return: Genetic map positions.
:rtype: numpy.ndarray
"""
assert 0 <= np.min(pos)
assert 0 < np.min(pos)
return pos / 1e6


Expand Down

0 comments on commit bd32f9a

Please sign in to comment.