Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Jan 30, 2024
1 parent 665b105 commit 433f12d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/tests/beagle_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,10 @@ 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] == _MISSING:
if query_h[i] == tskit.MISSING_DATA:
continue
else:
if query_h[i] not in ref_h[i, :]:
Expand Down

0 comments on commit 433f12d

Please sign in to comment.