aboutsummaryrefslogtreecommitdiffstats
path: root/data/ref_results/network_suite.py
diff options
context:
space:
mode:
authorzhifeng.jiang <jiang.zhifeng@zte.com.cn>2016-09-23 11:38:35 +0800
committerzhifeng.jiang <jiang.zhifeng@zte.com.cn>2016-09-25 10:56:22 +0800
commit2b172eef7185382ed4283d1868896626ae3ef5f1 (patch)
tree7242ad699db6876264c9ac60f36763cc47f04ad1 /data/ref_results/network_suite.py
parentc806bbde071596f204782e7182a65173798ad3ca (diff)
Change result keys to lower-case and remove ' .'
QTIP-93 Change-Id: I125163e05b49d9631838e89571d59a967252292e Signed-off-by: zhifeng.jiang <jiang.zhifeng@zte.com.cn>
Diffstat (limited to 'data/ref_results/network_suite.py')
-rw-r--r--data/ref_results/network_suite.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/ref_results/network_suite.py b/data/ref_results/network_suite.py
index 37dcb093..ae4ed107 100644
--- a/data/ref_results/network_suite.py
+++ b/data/ref_results/network_suite.py
@@ -14,7 +14,7 @@ l = len(network_bench_list)
for benchmark in network_bench_list:
try:
- temp = temp + float(network_dict[benchmark]['1. Index'])
+ temp = temp + float(network_dict[benchmark]['index'])
except:
l = l - 1
pass
@@ -25,6 +25,6 @@ else:
network_suite_index = temp / len(network_bench_list)
network_dict_f = {}
network_dict_f['index'] = network_suite_index
- network_dict_f['suite results'] = network_dict
+ network_dict_f['suite_results'] = network_dict
with open('../../results/network_result.json', 'w+') as result_json:
json.dump(network_dict_f, result_json, indent=4, sort_keys=True)