Skip to content

Commit 8d6b2ea

Browse files
pcaspersjenkins
authored andcommitted
Merge branch 'github_issue_286' into 'master'
Github issue 286 See merge request qs/oreplus!2738
1 parent ff552a0 commit 8d6b2ea

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Examples/ore_examples_helper.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,15 @@ def get_times(self, output):
155155
def get_output_data_from_column(self, csv_name, colidx, offset=1, filter='', filterCol=0):
156156
f = open(os.path.join(os.path.join(os.getcwd(), "Output"), csv_name))
157157
data = []
158+
count = 0
158159
for line in f:
159160
tokens = line.split(',')
160-
if colidx < len(line.split(',')):
161-
# if (filter == '' or tokens[filterCol] == filter):
162-
if (filter == '' or (filter in tokens[filterCol])):
163-
data.append(line.split(',')[colidx])
161+
if colidx < len(tokens):
162+
if (filter == '' or (filter in tokens[filterCol]) or count == 0):
163+
data.append(tokens[colidx])
164164
else:
165165
data.append("Error")
166+
count = count + 1
166167
return [float(i) for i in data[offset:]]
167168

168169
def save_output_to_subdir(self, subdir, files):

0 commit comments

Comments
 (0)