Skip to content

Commit

Permalink
fix idmap indices
Browse files Browse the repository at this point in the history
  • Loading branch information
bguo068 committed Jun 11, 2024
1 parent e7e1e50 commit 46c1325
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test_fixtures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,8 @@ pub mod simulation {
let pop_1 = tables.add_population().unwrap();
let pop_2 = tables.add_population().unwrap();
// get new ids after simplifcation
let child1 = id_map[0];
let child2 = id_map[1];
let child1 = id_map[child1.to_usize().unwrap()];
let child2 = id_map[child2.to_usize().unwrap()];
tables
.add_migration((left, right), child1, (pop_anc, pop_1), t0 + 1.0)
.unwrap();
Expand Down

0 comments on commit 46c1325

Please sign in to comment.