Skip to content
Snippets Groups Projects
Commit b4d97a44 authored by Franck Dary's avatar Franck Dary
Browse files

Ignore empty node when reading tsv

parent 9fb78420
No related branches found
No related tags found
No related merge requests found
...@@ -128,6 +128,10 @@ void BaseConfig::readTSVInput(std::string_view tsvFilename) ...@@ -128,6 +128,10 @@ void BaseConfig::readTSVInput(std::string_view tsvFilename)
if ((int)splited.size() != usualNbCol) if ((int)splited.size() != usualNbCol)
util::myThrow(fmt::format("in file {} line {} is invalid, it shoud have {} columns", tsvFilename, line, usualNbCol)); util::myThrow(fmt::format("in file {} line {} is invalid, it shoud have {} columns", tsvFilename, line, usualNbCol));
// Ignore empty nodes
if (hasColIndex(idColName) && splited[getColIndex(idColName)].find('.') != std::string::npos)
continue;
addLines(1); addLines(1);
get(EOSColName, getNbLines()-1, 0) = EOSSymbol0; get(EOSColName, getNbLines()-1, 0) = EOSSymbol0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment