Skip to content

Commit

Permalink
fix smck migration
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromekelleher committed Aug 5, 2024
1 parent 0b60d27 commit 4951c58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions lib/msprime.c
Original file line number Diff line number Diff line change
Expand Up @@ -2716,12 +2716,9 @@ msp_move_individual(msp_t *self, avl_node_t *node, avl_tree_t *source,
}
ind->label = dest_label;
}
ind->hull = new_hull;
if (new_hull != NULL) {
new_hull->lineage = ind;
ret = msp_insert_hull(self, new_hull);
if (ret != 0) {
goto out;
}
}
lineage_reset_segments(ind);
ret = msp_insert_individual(self, ind);
Expand Down
4 changes: 1 addition & 3 deletions lib/tests/test_ancestry.c
Original file line number Diff line number Diff line change
Expand Up @@ -4045,7 +4045,6 @@ test_init_smc_k(void)
tsk_table_collection_free(&tables);
}

#if 0
static void
test_smc_k_multipop(void)
{
Expand Down Expand Up @@ -4082,7 +4081,6 @@ test_smc_k_multipop(void)
gsl_rng_free(rng);
tsk_table_collection_free(&tables);
}
#endif

static void
test_mixed_model_smc_k(void)
Expand Down Expand Up @@ -4363,7 +4361,7 @@ main(int argc, char **argv)
{ "test_setup_smc_k_plus", test_setup_smc_k_plus },
/* { "test_reset_smc_k", test_reset_smc_k }, */
{ "test_init_smc_k", test_init_smc_k },
/* { "test_smc_k_multipop", test_smc_k_multipop }, */
{ "test_smc_k_multipop", test_smc_k_multipop },
{ "test_mixed_model_smc_k", test_mixed_model_smc_k },
{ "test_mixed_model_smc_k_large", test_mixed_model_smc_k_large },
{ "test_fenwick_rebuild_smc_k", test_fenwick_rebuild_smc_k },
Expand Down

0 comments on commit 4951c58

Please sign in to comment.