Skip to content

Commit

Permalink
organise CalibratedYuleToBeast #144
Browse files Browse the repository at this point in the history
  • Loading branch information
EvaLiyt committed Sep 19, 2024
1 parent 4475007 commit ba81643
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import beast.base.core.BEASTInterface;
import beast.base.evolution.speciation.CalibratedYuleModel;
import beast.base.inference.parameter.RealParameter;
import lphy.base.evolution.birthdeath.CalibratedYule;
import lphybeast.BEASTContext;
import lphybeast.GeneratorToBEAST;
Expand All @@ -14,9 +13,7 @@ public CalibratedYuleModel generatorToBEAST(CalibratedYule generator, BEASTInter
CalibratedYuleModel calibratedYuleModel = new CalibratedYuleModel();

calibratedYuleModel.setInputValue("tree", value);

RealParameter birthRate = context.getAsRealParameter(generator.getBirthRate());
calibratedYuleModel.setInputValue("birthRate", birthRate);
calibratedYuleModel.setInputValue("birthRate", context.getAsRealParameter(generator.getBirthRate()));

calibratedYuleModel.initAndValidate();

Expand Down

0 comments on commit ba81643

Please sign in to comment.