Skip to content

Commit

Permalink
Use MISSING variable
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Jan 25, 2024
1 parent 6143bbe commit 7b64e64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/tests/beagle_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,11 @@ def check_data(ref_h, query_h):
:return: True if alleles in query are in reference.
:rtype: bool
"""
_MISSING = -1
m = ref_h.shape[0]
assert m == len(query_h), "Reference and query differ in length."
for i in range(m):
if query_h[i] == -1:
if query_h[i] == _MISSING:
continue
else:
if query_h[i] not in ref_h[i, :]:
Expand Down

0 comments on commit 7b64e64

Please sign in to comment.