diff --git a/lib/msprime.c b/lib/msprime.c index ec2ed4a71..50ce93580 100644 --- a/lib/msprime.c +++ b/lib/msprime.c @@ -2668,6 +2668,7 @@ msp_move_individual(msp_t *self, avl_node_t *node, avl_tree_t *source, goto out; } } + lineage_reset_segments(ind); ret = msp_insert_individual(self, ind); out: return ret; @@ -6065,6 +6066,7 @@ msp_sweep_recombination_event( if (ret != 0) { goto out; } + tsk_bug_assert(lhs->lineage != NULL); tsk_bug_assert(rhs->lineage != NULL); @@ -6147,7 +6149,6 @@ msp_run_sweep(msp_t *self) if (ret != 0) { goto out; } - msp_verify(self, 0); ret = msp_sweep_initialise(self, allele_frequency[0]); if (ret != 0) { goto out; @@ -6156,7 +6157,6 @@ msp_run_sweep(msp_t *self) curr_step = 1; while (msp_get_num_ancestors(self) > 0 && curr_step < num_steps) { events++; - msp_verify(self, 0); /* Set pop sizes & rec_rates */ for (j = 0; j < self->num_labels; j++) { label = (label_id_t) j;