From 41a001c5381ead17c7151a4cdfd0a9dc1709f878 Mon Sep 17 00:00:00 2001 From: GuyBaele Date: Tue, 24 Dec 2024 12:04:01 +0100 Subject: [PATCH] location scale gradient generator code was in the wrong place --- src/dr/app/beauti/generator/ClockModelGenerator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dr/app/beauti/generator/ClockModelGenerator.java b/src/dr/app/beauti/generator/ClockModelGenerator.java index c19446180c..2c2dc44e07 100644 --- a/src/dr/app/beauti/generator/ClockModelGenerator.java +++ b/src/dr/app/beauti/generator/ClockModelGenerator.java @@ -340,6 +340,9 @@ public void writeBranchRatesModel(PartitionClockModel clockModel, XMLWriter writ writer.writeIDref(DefaultTreeModel.TREE_MODEL, treePrefix + DefaultTreeModel.TREE_MODEL); writer.writeCloseTag(CTMCScalePriorParser.MODEL_NAME); + } + + if (generateScaleGradient){ //location gradient writer.writeOpenTag(LocationScaleGradientParser.NAME, new Attribute[]{ new Attribute.Default<>(XMLParser.ID, prefix + LocationGradient.LOCATION_GRADIENT), @@ -352,9 +355,6 @@ public void writeBranchRatesModel(PartitionClockModel clockModel, XMLWriter writ writer.writeCloseTag(LocationScaleGradientParser.LOCATION); writer.writeCloseTag(LocationScaleGradientParser.NAME); - } - - if (generateScaleGradient){ //scale gradient writer.writeOpenTag(LocationScaleGradientParser.NAME, new Attribute[]{ new Attribute.Default<>(XMLParser.ID, prefix + ScaleGradient.SCALE_GRADIENT),