use of dr.inference.loggers.LogColumn in project beast-mcmc by beast-dev.
the class TreeTraitLogger method getColumns.
public LogColumn[] getColumns() {
if (loggableTreeTraits.size() == 0) {
return null;
}
LogColumn[] columns = new LogColumn[loggableTreeTraits.size()];
for (int i = 0; i < loggableTreeTraits.size(); i++) {
final TreeTrait trait = loggableTreeTraits.get(i);
columns[i] = new LogColumn.Abstract(trait.getTraitName()) {
@Override
protected String getFormattedValue() {
return trait.getTraitString(tree, null);
}
};
}
return columns;
}
Aggregations