Skip to content

Commit 4ad5dd8

Browse files
committed
add check that AncestralStateLogger cannot sample values when site model has more than 1 category
1 parent 0b2be2a commit 4ad5dd8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/beastlabs/evolution/likelihood/AncestralStateLogger.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ private int[] sample(Node node) {
167167
throw new RuntimeException("BEAGLE is not supported yet");
168168
// m_fRootPartials = beagle.m_fRootPartials;
169169
}
170+
if (m_siteModel.getCategoryCount() != 1) {
171+
throw new RuntimeException("Gamma rate heterogeneity or proportion invariant is not supported yet");
172+
}
170173

171174
double [] p = new double[stateCount];
172175
double [] freqs = substitutionModel.getFrequencies();

0 commit comments

Comments
 (0)