Skip to content

Commit

Permalink
better error handling + TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
gabehassler committed Jan 17, 2024
1 parent 2866158 commit 5132abf
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,15 @@ public PrecisionType getPrecisionType() {

@Override
public double[] getTipPartial(int taxonIndex, boolean fullyObserved) {
if (precisionType != PrecisionType.FULL) {
throw new RuntimeException("Currently only implemented for full precision");
}
if (fullyObserved) {
throw new RuntimeException("Wishart statistics currently not implemented for joint partials provider");
// TODO: need to implement scalar precision type then go from there
}


double[] partial = new double[precisionType.getPartialsDimension(traitDim)];

int meanOffset = precisionType.getMeanOffset(traitDim);
Expand Down

0 comments on commit 5132abf

Please sign in to comment.