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

Fixed bugs when there was no HEAD col in mcd

parent 2cd71b60
Branches
No related tags found
No related merge requests found
...@@ -106,6 +106,7 @@ void BaseConfig::readTSVInput(std::string_view tsvFilename) ...@@ -106,6 +106,7 @@ void BaseConfig::readTSVInput(std::string_view tsvFilename)
firstIndexOfSequence = i; firstIndexOfSequence = i;
id2index[getConst(idColName, i, 0)] = i; id2index[getConst(idColName, i, 0)] = i;
} }
if (hasColIndex(headColName))
for (int i = firstIndexOfSequence; i < (int)getNbLines(); ++i) for (int i = firstIndexOfSequence; i < (int)getNbLines(); ++i)
{ {
if (!isToken(i)) if (!isToken(i))
......
...@@ -605,6 +605,7 @@ void Config::addMissingColumns() ...@@ -605,6 +605,7 @@ void Config::addMissingColumns()
if (curId == 1) if (curId == 1)
firstIndex = index; firstIndex = index;
if (hasColIndex(headColName))
if (util::isEmpty(getAsFeature(headColName, index))) if (util::isEmpty(getAsFeature(headColName, index)))
getLastNotEmptyHyp(headColName, index) = (curId == 1) ? "0" : std::to_string(firstIndex); getLastNotEmptyHyp(headColName, index) = (curId == 1) ? "0" : std::to_string(firstIndex);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment