Skip to content

Commit

Permalink
Was not using rate matrix values after it had potentially been update…
Browse files Browse the repository at this point in the history
…d by a TreeMove
  • Loading branch information
jhellewell14 committed Dec 4, 2024
1 parent 476a28c commit f1fdbdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/treestate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ impl<'a, R: RateMatrix + 'a, M: TreeMove<R>> Iterator for TreeStateIter<'a, R, M
}
let old_ll = self.ts.ll.unwrap();

let rate_mat = self.ts.mat.get_matrix();
let mut new_ts = self.move_fn.generate(&self.ts);
let rate_mat = new_ts.mat.get_matrix();

if new_ts.changed_nodes.is_none() {
return Some(new_ts)
Expand Down

0 comments on commit f1fdbdf

Please sign in to comment.