summaryrefslogtreecommitdiffstats
path: root/data/ref_results/network_suite.py
diff options
context:
space:
mode:
authorzhifeng.jiang <jiang.zhifeng@zte.com.cn>2016-07-16 21:15:11 +0800
committerzhifeng.jiang <jiang.zhifeng@zte.com.cn>2016-07-16 21:15:11 +0800
commit481f78bf7a08e31ee53270028fa70b9eb60ff0a3 (patch)
tree629ac721a5fa3b18180e3fd7152acfa8795b50d4 /data/ref_results/network_suite.py
parentacd405c3199a03ae58844a6c6f0e5595fb877da3 (diff)
Fix pep8 errors for all the others python files.
JIRA:QTIP-89 Change-Id: Ida1936dea3bcab6137d039fc2d21dc4df60d9f77 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.py28
1 files changed, 12 insertions, 16 deletions
diff --git a/data/ref_results/network_suite.py b/data/ref_results/network_suite.py
index fd756aa0..37dcb093 100644
--- a/data/ref_results/network_suite.py
+++ b/data/ref_results/network_suite.py
@@ -2,33 +2,29 @@ import json
import network_benchmarks_indices as benchmark_indices
-network_dict={};
+network_dict = {}
try:
- network_dict['IPERF']=benchmark_indices.iperf_index()
+ network_dict['IPERF'] = benchmark_indices.iperf_index()
except:
pass
-
-
-
-network_bench_list=['IPERF']
-temp=0
-l=len(network_bench_list)
+network_bench_list = ['IPERF']
+temp = 0
+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]['1. Index'])
except:
- l=l-1
+ l = l - 1
pass
if l == 0:
- print "No network results found"
+ print "No network results found"
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_suite_index = temp / len(network_bench_list)
+ network_dict_f = {}
+ network_dict_f['index'] = network_suite_index
+ 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)
-