Commit 39e8fc9f authored by kraus's avatar kraus

if we can't find stat variable then test is broken

parent 1d986fe1
......@@ -197,7 +197,7 @@ class StatTest:
"""
def readStatVariable(self, filename):
vars = []
nrCol = 0
nrCol = -1
numScalars = 0
hasReadHeader = False
lines = readfile(filename + ".stat")
......@@ -219,7 +219,7 @@ class StatTest:
numScalars -= 1
continue
elif hasReadHeader == True and numScalars == 0:
elif hasReadHeader == True and numScalars == 0 and nrCol > -1:
values = str.split(line, "\t")
vars.append(float(values[nrCol]))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment