Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CSIT-1488: Add data to the Report 1904
[csit.git]
/
resources
/
tools
/
presentation
/
generator_plots.py
diff --git
a/resources/tools/presentation/generator_plots.py
b/resources/tools/presentation/generator_plots.py
index
6792b0b
..
7c8a9f8
100644
(file)
--- a/
resources/tools/presentation/generator_plots.py
+++ b/
resources/tools/presentation/generator_plots.py
@@
-99,6
+99,9
@@
def plot_performance_box(plot, input_data):
append(test["throughput"]["NDR"]["LOWER"])
else:
continue
append(test["throughput"]["NDR"]["LOWER"])
else:
continue
+ elif test["type"] in ("SOAK", ):
+ y_vals[test["parent"]].\
+ append(test["throughput"]["LOWER"])
else:
continue
except (KeyError, TypeError):
else:
continue
except (KeyError, TypeError):
@@
-167,7
+170,7
@@
def plot_performance_box(plot, input_data):
logging.error(repr(err))
continue
if val_max:
logging.error(repr(err))
continue
if val_max:
- y_max.append(int(val_max / 1000000) +
1
)
+ y_max.append(int(val_max / 1000000) +
2
)
try:
# Create plot
try:
# Create plot
@@
-1479,7
+1482,7
@@
def plot_service_density_heatmap_compare(plot, input_data):
except (KeyError, IndexError):
val_c = None
if val_c is not None and val_r:
except (KeyError, IndexError):
val_c = None
if val_c is not None and val_r:
- val_d = (val_c - val_r) / val_r
+ val_d = (val_c - val_r)
* 100
/ val_r
else:
val_d = None
else:
val_d = None
@@
-1490,7
+1493,7
@@
def plot_service_density_heatmap_compare(plot, input_data):
val_c = round(val_c / 1000000, 1)
data_c[c - 1].append(val_c)
if val_d is not None:
val_c = round(val_c / 1000000, 1)
data_c[c - 1].append(val_c)
if val_d is not None:
- val_d =
round(val_d / 10000, 1
)
+ val_d =
int(round(val_d, 0)
)
diff[c - 1].append(val_d)
# Colorscales:
diff[c - 1].append(val_d)
# Colorscales: