summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2018-03-10 17:03:57 +0100
committerCedric Nugteren <web@cedricnugteren.nl>2018-03-10 17:03:57 +0100
commit0dd1bc6f4880308d3e240545203413d3d902d5b7 (patch)
tree6f36c04c221dba3289a08fd8c2c1fdf612dc07d7 /scripts
parent49b02ec194c631054a690e897886e3a7339192a1 (diff)
Made benchmarking script also work for complex numbers
Diffstat (limited to 'scripts')
-rw-r--r--scripts/benchmark/utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/benchmark/utils.py b/scripts/benchmark/utils.py
index 62e18de2..11aad805 100644
--- a/scripts/benchmark/utils.py
+++ b/scripts/benchmark/utils.py
@@ -62,5 +62,8 @@ def parse_results(csv_data):
results = [r for r in results]
for result in results:
for key in result:
- result[key] = float(result[key]) if "." in result[key] else int(result[key])
+ if "i" in result[key]:
+ continue
+ else:
+ result[key] = float(result[key]) if "." in result[key] else int(result[key])
return results