Skip to content

Commit

Permalink
Beast 2.4 update for new parameterization
Browse files Browse the repository at this point in the history
  • Loading branch information
Sasha committed Mar 7, 2016
1 parent a7cec62 commit 7fcec03
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ public double s() {
}

@Override
public void initAndValidate() throws Exception {}
public void initAndValidate() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ public double d() {
}

@Override
public void initAndValidate() throws Exception {}
public void initAndValidate() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ public class ParameterizedSABirthDeathModel extends SpeciesTreeDistribution {

private boolean lambdaExceedsMu = false;

public void initAndValidate() throws Exception {
public void initAndValidate() {

updateParameters();

double rootHeight = treeInput.get().getRoot().getHeight();
if (origin < rootHeight){
throw new RuntimeException("Initial value of origin (" + origin + ") should be greater than initial root height (" +rootHeight + ")");
throw new IllegalArgumentException("Initial value of origin (" + origin + ") should be greater than initial root height (" +rootHeight + ")");
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/beast/evolution/speciation/RateParameterization.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ public double origin() {
}

@Override
public void initAndValidate() throws Exception {}
public void initAndValidate() {}
}

0 comments on commit 7fcec03

Please sign in to comment.