-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdump_log.py
More file actions
23 lines (19 loc) · 801 Bytes
/
dump_log.py
File metadata and controls
23 lines (19 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python
""" Build a result out of runs """
from __future__ import print_function
import json
import argparse
from collections import defaultdict
parser = argparse.ArgumentParser(description='Process results.')
parser.add_argument('infile', type=argparse.FileType('r'), default="DataSets/without_compression.json")
args = parser.parse_args()
results = json.load(args.infile)
for problem in results["problems"]:
for combination in problem["combinations"]:
comb_results = defaultdict(list)
for result in combination["repeats"]:
output = result["output"]
full_command = ([result["command"]] + result["options"] +
result["test_options"] + result["problem"])
print(full_command)
print(output)