Skip to content

Commit

Permalink
enhance beast "-validate" option. fixes #86
Browse files Browse the repository at this point in the history
  • Loading branch information
rbouckaert committed Sep 9, 2024
1 parent 917c22b commit e84a8a2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/beastfx/app/beast/BeastMCMC.java
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,14 @@ public void run() throws Exception {
} // run


public void validate() {
try {
m_runnable.validate();
} catch (Exception e) {
e.printStackTrace();
throw new RuntimeException(e);
}
}

public static void main(String[] args) {
try {
Expand Down
2 changes: 2 additions & 0 deletions src/beastfx/app/beast/BeastMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,8 @@ public void write(int b) {

if (!doNotRun) {
beastMCMC.run();
} else {
beastMCMC.validate();
}
Log.info.println("Done!");
} catch (RuntimeException rte) {
Expand Down

0 comments on commit e84a8a2

Please sign in to comment.