Skip to content

Commit

Permalink
Per #1749, fix the bug of writing the MCTC header and data columns us…
Browse files Browse the repository at this point in the history
…ing the wrong indices.
  • Loading branch information
JohnHalleyGotway committed Jun 13, 2021
1 parent dd26393 commit 3b9a01a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions met/src/libcode/vx_stat_out/stat_columns.cc
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void write_mctc_header_row(int hdr_flag, int n_cat, AsciiTable &at,
at.set_entry(r, c+1, (string)mctc_columns[1]);

// Write Fi_Oj for each cell of the NxN table
for(i=0, col=c+3; i<n_cat; i++) {
for(i=0, col=c+2; i<n_cat; i++) {
for(j=0; j<n_cat; j++) {
cs.format("F%i_O%i", i+1, j+1);
at.set_entry(r, col, cs); // Fi_Oj
Expand Down Expand Up @@ -2658,7 +2658,7 @@ void write_mctc_cols(const MCTSInfo &mcts_info,
//
// Loop through the contingency table rows and columns
//
for(i=0, col=c+3; i<mcts_info.cts.nrows(); i++) {
for(i=0, col=c+2; i<mcts_info.cts.nrows(); i++) {
for(j=0; j<mcts_info.cts.ncols(); j++) {

at.set_entry(r, col, // Fi_Oj table counts
Expand Down

0 comments on commit 3b9a01a

Please sign in to comment.