Skip to content

Commit

Permalink
add comments for CalibratedYuleToBeast #168
Browse files Browse the repository at this point in the history
  • Loading branch information
EvaLiyt committed Nov 19, 2024
1 parent c9e24b7 commit 0a71ee9
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ public CalibratedYuleModel generatorToBEAST(CalibratedYule generator, BEASTInter
calibratedYuleModel.setInputValue("birthRate", context.getAsRealParameter(generator.getBirthRate()));


Value<Number[]> cladeMCRAAge = generator.getCladeMRCAAge();
Value<Number[]> cladeMRCAAge = generator.getCladeMRCAAge();

Value cladeTaxa = generator.getCladeTaxa();

// unwrapping first element from array
// unwrapping first element from array, only for parameter generated from distributions.
// cause error if constant number pass in
// TODO handle multiple calibrations
BasicFunction tmp = (BasicFunction) cladeMCRAAge.getInputs().get(0);
BasicFunction tmp = (BasicFunction) cladeMRCAAge.getInputs().get(0);

// cladeAgeValue
Value cladeAgeValue = tmp.getParams().get("0");
Expand Down

0 comments on commit 0a71ee9

Please sign in to comment.