[backend/util] fix parsing old stimfiles ...
we need to ignore init lines, there is no actual stimulus put out
This commit is contained in:
parent
3d70e31512
commit
94221463f2
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user