Skip to content

Commit

Permalink
Decide to run tests for naive diploid Viterbi depending on the size o…
Browse files Browse the repository at this point in the history
…f the ref. panel
  • Loading branch information
szhan committed Jun 1, 2024
1 parent 391d3c4 commit fe97477
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_non_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,8 @@ def verify(self, ts, scale_mutation_rate, include_ancestors):
self.assertAllClose(ll_tmp, path_ll_tmp)
self.assertAllClose(ll_vs, ll_tmp)

if not include_ancestors:
num_ref_haps = H_vs.shape[1]
if num_ref_haps <= 100:
V_tmp, P_tmp, ll_tmp = vd.forwards_viterbi_dip_naive(
n, m, G_vs, s, e_vs, r
)
Expand Down

0 comments on commit fe97477

Please sign in to comment.