From 6906b0c00da79b17c7a5dc06bdc2b0d040ca2be5 Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Sun, 9 Jul 2017 14:31:14 +0100 Subject: [PATCH] sample-combine fix --- utils/sample-combine.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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) {