Skip to content

Commit

Permalink
Use tskit constant for missing data
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Feb 19, 2024
1 parent f53c008 commit 0192155
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/tests/beagle_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,8 @@ def run_interpolation_beagle(
stacklevel=1,
)
# Set marker indices.
typed_idx = np.where(query_h != -1)[0]
untyped_idx = np.where(query_h == -1)[0]
typed_idx = np.where(query_h != tskit.MISSING_DATA)[0]
untyped_idx = np.where(query_h == tskit.MISSING_DATA)[0]
# Set physical positions of markers.
typed_pos = pos[typed_idx]
untyped_pos = pos[untyped_idx]
Expand Down Expand Up @@ -530,8 +530,8 @@ def run_tsimpute(
stacklevel=1,
)
# Set markers indices.
typed_idx = np.where(query_h != -1)[0]
untyped_idx = np.where(query_h == -1)[0]
typed_idx = np.where(query_h != tskit.MISSING_DATA)[0]
untyped_idx = np.where(query_h == tskit.MISSING_DATA)[0]
# Set physical positions of markers.
typed_pos = pos[typed_idx]
untyped_pos = pos[untyped_idx]
Expand Down

0 comments on commit 0192155

Please sign in to comment.