From 2dd100726e2517bbdbaee399e3a9e34608a61768 Mon Sep 17 00:00:00 2001 From: Shing Zhan Date: Sun, 27 Aug 2023 10:26:52 +0100 Subject: [PATCH] Add position check --- python/tests/test_beagle.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/tests/test_beagle.py b/python/tests/test_beagle.py index 7ca2fb65ae..aeb2493e94 100644 --- a/python/tests/test_beagle.py +++ b/python/tests/test_beagle.py @@ -51,6 +51,7 @@ def convert_to_genetic_map_position(pos): :return: Genetic map positions. :rtype: numpy.ndarray """ + assert 0 <= np.min(pos) return pos / 1e6