We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6036b94 commit af3da9aCopy full SHA for af3da9a
src/beast/gss/NS.java
@@ -148,6 +148,10 @@ public void initAndValidate() {
148
"Expected only one likelihood distribution -- change the ID to something that does not start with likelihood and it will be deemed to be a prior.");
149
}
150
} else {
151
+ if (nextPriorIndex == samplingDistribution.length) {
152
+ throw new IllegalArgumentException(
153
+ "Nested sampling needs distribution with id='likelihood' representing the likelihood, but could not find one.");
154
+ }
155
samplingDistribution[nextPriorIndex] = pDist;
156
nextPriorIndex++;
157
0 commit comments