diff --git a/utils/sample-combine.cpp b/utils/sample-combine.cpp index 4323034..5a0aa4b 100644 --- a/utils/sample-combine.cpp +++ b/utils/sample-combine.cpp @@ -69,6 +69,7 @@ void loadAndCheck(vector &sample, const vector &fileName) sample[i] = Io::load(fileName[i]); if (!gotSize) { + nSample = sample[i].size(); nRow = sample[i][central].rows(); nCol = sample[i][central].cols(); gotSize = true; @@ -78,10 +79,6 @@ void loadAndCheck(vector &sample, const vector &fileName) { failed.insert(i); } - if (i == 0) - { - nSample = sample[i].size(); - } } for (unsigned int i: failed) {