From ba81643c5776aaf73ca838ce3830b16d6ae8bb4c Mon Sep 17 00:00:00 2001 From: EvaLiyt Date: Thu, 19 Sep 2024 16:00:35 +1200 Subject: [PATCH] organise CalibratedYuleToBeast #144 --- .../lphybeast/tobeast/generators/CalibratedYuleToBeast.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lphybeast/src/main/java/lphybeast/tobeast/generators/CalibratedYuleToBeast.java b/lphybeast/src/main/java/lphybeast/tobeast/generators/CalibratedYuleToBeast.java index 2635729..e3a06d4 100644 --- a/lphybeast/src/main/java/lphybeast/tobeast/generators/CalibratedYuleToBeast.java +++ b/lphybeast/src/main/java/lphybeast/tobeast/generators/CalibratedYuleToBeast.java @@ -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; @@ -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();