Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
avoid repeatedly printing linked ModelMarkov model parameters in .iqt…
Browse files Browse the repository at this point in the history
…ree report
  • Loading branch information
bqminh committed May 4, 2019
1 parent 0e9e313 commit bb1efb5
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions model/modelmarkov.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,15 @@ string ModelMarkov::getNameParams() {
ostringstream retname;
retname << name;
// if (num_states != 4) retname << num_states;
retname << '{';
int nrates = getNumRateEntries();
for (int i = 0; i < nrates; i++) {
if (i>0) retname << ',';
retname << rates[i];
}
retname << '}';
if (!fixed_parameters) {
retname << '{';
int nrates = getNumRateEntries();
for (int i = 0; i < nrates; i++) {
if (i>0) retname << ',';
retname << rates[i];
}
retname << '}';
}
getNameParamsFreq(retname);
return retname.str();
}
Expand Down

0 comments on commit bb1efb5

Please sign in to comment.