Skip to content

Commit edafb55

Browse files
committed
fix potential bug in sorting of node-sequences
1 parent 7592ec5 commit edafb55

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: phylopomp
22
Type: Package
33
Title: Phylodynamic Inference for POMP Models
4-
Version: 0.15.2.0
4+
Version: 0.15.2.1
55
Date: 2026-01-29
66
Authors@R: c(person(given=c("Aaron","A."),family="King",role=c("aut","cre"),email="kingaa@umich.edu",comment=c(ORCID="0000-0001-6159-3207")),
77
person(given=c("Qianying"),family="Lin",role=c("aut"),comment=c(ORCID="0000-0001-8620-9910"))

src/nodeseq.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ class nodeseq_t : public std::list<node_t*> {
9797
static bool compare (node_t* p, node_t* q) {
9898
return (p->slate < q->slate) ||
9999
((p->slate == q->slate) &&
100-
((p==q->green_ball()->holder()) || (p->uniq < q->uniq)));
100+
((p==q->green_ball()->holder()) ||
101+
((q!=p->green_ball()->holder()) && (p->uniq < q->uniq))));
101102
};
102103

103104
public:

0 commit comments

Comments
 (0)