Skip to content

Commit

Permalink
updates constrained tree parameter names to match expectation in xml
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmccr1 committed Jan 14, 2025
1 parent 3d5c850 commit d3fdbcf
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import dr.evolution.tree.Tree;
import dr.evomodel.bigfasttree.thorney.ConstrainedTreeModel;
import dr.evomodel.bigfasttree.thorney.RootHeightProxyParameter;
import dr.evomodel.operators.RandomWalkIntegerNodeHeightWeightedOperator;
import dr.evomodel.tree.TreeModel;
import dr.evomodel.treedatalikelihood.discrete.NodeHeightProxyParameter;
import dr.evomodelxml.tree.TreeModelParser;
Expand Down Expand Up @@ -60,12 +59,12 @@ public Object parseXMLObject(XMLObject xo) throws XMLParseException {
Logger.getLogger("dr.evomodel").info(" tree height = " + treeModel.getNodeHeight(treeModel.getRoot()));

// Make proxy parameters
RootHeightProxyParameter rootHeightProxyParameter = new RootHeightProxyParameter("Placeholder_Root_Proxy",
RootHeightProxyParameter rootHeightProxyParameter = new RootHeightProxyParameter(xo.getId() + ".rootHeight",
treeModel); // id overwritten below
NodeHeightProxyParameter nodeHeightProxyParameter = new NodeHeightProxyParameter("Placeholder_nodeHeight_Proxy",
NodeHeightProxyParameter nodeHeightProxyParameter = new NodeHeightProxyParameter(xo.getId() +".internalNodeHeights",
treeModel, false);
NodeHeightProxyParameter allNodeHeightProxyParameter = new NodeHeightProxyParameter(
"Placeholder_allNodeHeight_Proxy", treeModel, true);
xo.getId() +".allInternalNodeHeights", treeModel, true);
// parse proxy parameters
for (int i = 0; i < xo.getChildCount(); i++) {
if (xo.getChild(i) instanceof XMLObject) {
Expand Down

0 comments on commit d3fdbcf

Please sign in to comment.