Skip to content

Commit

Permalink
location scale gradient generator code was in the wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyBaele committed Dec 24, 2024
1 parent fd162f3 commit 41a001c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dr/app/beauti/generator/ClockModelGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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),
Expand Down

0 comments on commit 41a001c

Please sign in to comment.