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 433f12d commit be752e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/tests/beagle_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ def check_data(ref_h, query_h):
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] == tskit.MISSING_DATA:
continue
else:
if query_h[i] != tskit.MISSING_DATA:
if query_h[i] not in ref_h[i, :]:
print(f"Allele {query_h[i]} at {i}th position not in reference.")
return False
Expand Down

0 comments on commit be752e7

Please sign in to comment.