Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Commit

Permalink
Merge pull request #167 from revbayes/multitrace
Browse files Browse the repository at this point in the history
Improved combining of multiple tree traces
  • Loading branch information
Walker Pett authored Sep 11, 2019
2 parents e2f9250 + b69374b commit 9afdfe3
Show file tree
Hide file tree
Showing 36 changed files with 2,694 additions and 2,424 deletions.
2 changes: 1 addition & 1 deletion src/core/analysis/mcmc/Mcmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ void Mcmc::finishMonitors( size_t n_reps, MonteCarloAnalysisOptions::TraceCombin
monitors[i].closeStream();

// combine results if we used more than one replicate
if ( n_reps > 1 )
if ( n_reps > 1 && tc != MonteCarloAnalysisOptions::NONE )
{
monitors[i].combineReplicates( n_reps, tc );
}
Expand Down
1 change: 1 addition & 0 deletions src/core/analysis/mcmc/output/Trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class Serializable;
virtual void addObject(valueType* d);
virtual bool isCoveredInInterval(const std::string &v, double i, bool verbose);
bool isDirty(void) const { return dirty; };
void isDirty(bool d) const { dirty = d; };
void removeLastObject();
void removeObjectAtIndex(int index);

Expand Down
Loading

0 comments on commit 9afdfe3

Please sign in to comment.