Skip to content

Commit 46c1325

Browse files
committed
fix idmap indices
1 parent e7e1e50 commit 46c1325

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test_fixtures.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ pub mod simulation {
487487
let pop_1 = tables.add_population().unwrap();
488488
let pop_2 = tables.add_population().unwrap();
489489
// get new ids after simplifcation
490-
let child1 = id_map[0];
491-
let child2 = id_map[1];
490+
let child1 = id_map[child1.to_usize().unwrap()];
491+
let child2 = id_map[child2.to_usize().unwrap()];
492492
tables
493493
.add_migration((left, right), child1, (pop_anc, pop_1), t0 + 1.0)
494494
.unwrap();

0 commit comments

Comments
 (0)