diff options
author | Nauman_Ahad <nauman_ahad@xflowresearch.com> | 2016-02-02 02:54:48 +0500 |
---|---|---|
committer | Nauman_Ahad <nauman_ahad@xflowresearch.com> | 2016-02-02 02:54:48 +0500 |
commit | cbdddad944abba7be2eb848b16b2abc1ce791f50 (patch) | |
tree | 2a37d904ea45a78bf9b9ae879eedc9eccb7101a1 /data/ref_results | |
parent | 062d12fc2f6a8de367da50445a8af49b983d0b81 (diff) |
Bug Fixes for SSL index calculation
Index calcuation for SSL caused a ValueError when
converting to float due to the presence of
a trailing "k" character. This has ben resolved.
Change-Id: I6f7d061977a3a8cbc2aa1afe154df5eeec9feac8
Signed-off-by: Nauman_Ahad <nauman_ahad@xflowresearch.com>
Diffstat (limited to 'data/ref_results')
-rw-r--r-- | data/ref_results/index_calculation.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/data/ref_results/index_calculation.py b/data/ref_results/index_calculation.py index 488ed867..74c8b14b 100644 --- a/data/ref_results/index_calculation.py +++ b/data/ref_results/index_calculation.py @@ -36,9 +36,10 @@ def generic_index(dict_gen,testcase,reference_num,*args): count=count+1 for arg in args: if arg == args[c-1]: - result=float(dict_temp.get(str(arg))) + try: + result=float(dict_temp.get(str(arg))) + except ValueError: + result=float(dict_temp.get(str(arg))[:-1])*1000 dict_temp=dict_temp.get(str(arg)) total=total+result - return compute_index(total, reference_num, count) - -
\ No newline at end of file + return compute_index(total, reference_num, count) |