[backend/util] fix parsing old stimfiles ...

we need to ignore init lines, there is no actual stimulus put out
This commit is contained in:
Jan Grewe 2020-08-14 13:34:07 +02:00
parent 3d70e31512
commit 94221463f2

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