Skip to content

Commit

Permalink
remove print
Browse files Browse the repository at this point in the history
  • Loading branch information
molpopgen committed Oct 23, 2023
1 parent c8757dd commit a6cd740
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions examples/haploid_wright_fisher_simple_edge_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ fn simulate(

let mut buffer = EdgeBuffer::default();
for birth_time in (0..num_generations).rev() {
println!("bt = {birth_time:?}");
for c in children.iter_mut() {
let bt = f64::from(birth_time);
let child = tables.add_node(0, bt, -1, -1)?;
Expand All @@ -141,15 +140,10 @@ fn simulate(
if birth_time % simplify_interval == 0 {
//tables.sort(&bookmark, tskit::TableSortOptions::default())?;
for &parent in buffer.parent.iter().rev() {
println!("{parent:?}");
let mut last = buffer.last.get(&parent).cloned();
while let Some(previous) = last {
let edge = &buffer.edges[previous];
tables.add_edge(edge.left, edge.right, parent, edge.child)?;
println!("adding {edge:?}");
tables.check_integrity(
tskit::TableIntegrityCheckFlags::default().check_edge_ordering(),
)?;
last = edge.previous;
}
}
Expand Down

0 comments on commit a6cd740

Please sign in to comment.