Skip to content

Commit

Permalink
C code mostly working!
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromekelleher committed Jul 26, 2024
1 parent 290e8d1 commit 1df8767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/msprime.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 1df8767

Please sign in to comment.