Commit 9afc477a authored by Philipp Meyer's avatar Philipp Meyer

Fix parameter in generated table for benchmark results

parent d1aa12ec
......@@ -70,7 +70,7 @@ if long_table:
else:
row_string = ""
params = [ p for p in filename[len(protocol):][:-5].split('_') if len(p) >= 2 ]
params = [ p for p in filename[len(protocol):].split('.')[0].split('_') if len(p) >= 2 ]
for i in range(len(params)):
var = params[i][0]
......@@ -131,7 +131,7 @@ if long_table:
# short table
if short_table:
results_file='results-short.csv'
results_file='results.csv'
results = pd.read_csv(benchmark_dir + '/' + results_dir + '/' + results_file)
......@@ -161,7 +161,7 @@ if short_table:
print("$m$ & $|Q|$ & $|T|$ & Time\,(s) \\\\")
print("\\midrule")
params = [ p for p in filename[len(protocol):][:-5].split('_') if len(p) >= 2 ]
params = [ p for p in filename[len(protocol):].split('.')[0].split('_') if len(p) >= 2 ]
if len(params) > 0:
val = params[0][1:]
......
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