Skip to content

Commit

Permalink
towards fixing CompEvol/BeastFX#50
Browse files Browse the repository at this point in the history
  • Loading branch information
rbouckaert committed May 17, 2023
1 parent 714af28 commit 9a3a45d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/snapper/Data.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,22 @@ public void initAndValidate() {


} // initAndValidate


@Override
public List<String> getTaxaNames() {
if (ProgramStatus.name.equals("BEAUti")) {
if (taxaNames == null) {
taxaNames = new ArrayList<>();
} else {
taxaNames.clear();
}
for (Taxon s : m_taxonsets.get()) {
taxaNames.add(s.getID());
}
}
return super.getTaxaNames();
}

private Sequence toBinarySequence(String id, String refferenceSeq,
String seqStr) {
Sequence binarySequence = new Sequence();
Expand Down
1 change: 1 addition & 0 deletions src/snapper/inputeditor/DataInputEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ private HBox createButtonBox() {
taxonMapping.get(rows.get(i)).setTaxon2(taxon);
}
modelToTaxonset();
taxonSetToModel();
});

Button guessButton = new Button("Guess");
Expand Down

0 comments on commit 9a3a45d

Please sign in to comment.