aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_plots.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2019-02-11 11:11:02 +0100
committerTibor Frank <tifrank@cisco.com>2019-02-11 13:52:12 +0100
commitadab3cb4d5abc7f555f40b5f268fb611a77cace5 (patch)
treeb17b683101910437a69b0a821e21ea8dea63ccb2 /resources/tools/presentation/generator_plots.py
parent56d7e2d16c14e3c63de44828cba4169ca03e6a1d (diff)
Report: Add NFV tests
Change-Id: Ib996b4929fb4e31eceb475691dc7517a9144f0b3 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_plots.py')
-rw-r--r--resources/tools/presentation/generator_plots.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py
index 747c3a2877..d77ac7bab5 100644
--- a/resources/tools/presentation/generator_plots.py
+++ b/resources/tools/presentation/generator_plots.py
@@ -1125,13 +1125,16 @@ def plot_service_density_heatmap(plot, input_data):
nr=None,
mean=None,
stdev=None)
- if plot["include-tests"] == "MRR":
- result = test["result"]["receive-rate"].avg
- elif plot["include-tests"] == "PDR":
- result = test["throughput"]["PDR"]["LOWER"]
- elif plot["include-tests"] == "NDR":
- result = test["throughput"]["NDR"]["LOWER"]
- else:
+ try:
+ if plot["include-tests"] == "MRR":
+ result = test["result"]["receive-rate"].avg
+ elif plot["include-tests"] == "PDR":
+ result = test["throughput"]["PDR"]["LOWER"]
+ elif plot["include-tests"] == "NDR":
+ result = test["throughput"]["NDR"]["LOWER"]
+ else:
+ result = None
+ except TypeError:
result = None
if result: