24.09., 9:00 - 11:00: Due to updates GitLab will be unavailable for some minutes between 09:00 and 11:00.

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