several fixes and improvements for handling old relacs files #4

Merged
csachgau merged 10 commits from relacs into master 2020-08-14 15:04:42 +00:00
Showing only changes of commit 94221463f2 - Show all commits

View File

@ -84,7 +84,7 @@ def has_signal(line, col_names):
values = line.split()
for i, n in enumerate(col_names):
if n.lower() == "signal" and i < len(values):
if len(values[i].strip()) > 0 and values[i].strip()[0] != "-":
if len(values[i].strip()) > 0 and (values[i].strip()[0] != "-" and values[i].strip() != "init"):
return True
return False