Skip to content

Commit

Permalink
fix skyglide likelihood with two/three bugs..
Browse files Browse the repository at this point in the history
  • Loading branch information
xji3 committed Nov 14, 2023
1 parent ce44de7 commit 1d090b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/dr/evomodel/coalescent/smooth/SkyGlideLikelihood.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ public SkyGlideLikelihood(String name,
this.gridPointParameter = gridPointParameter;
this.intervals = new ArrayList<>();
for (int i = 0; i < trees.size(); i++) {
this.intervals.add(new BigFastTreeIntervals(trees.get(0)));
BigFastTreeIntervals treeIntervals = new BigFastTreeIntervals(trees.get(i));
this.intervals.add(treeIntervals);
addModel(treeIntervals);
}
}

Expand Down Expand Up @@ -100,7 +102,7 @@ protected void acceptState() {

@Override
public Model getModel() {
return null;
return this;
}

@Override
Expand Down

0 comments on commit 1d090b7

Please sign in to comment.