X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_plots.py;h=66656679d070f4964f0ebd41f34c3b318cfe849c;hp=5580cbdf1ca0abbf603c6f8d4f66da0e7f17354a;hb=b4b7fac76d29cc780b3ccd865379ad2ed38c0586;hpb=9803b11b7b5a6df4e81fbee1da6d141b0729fc20 diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py index 5580cbdf1c..66656679d0 100644 --- a/resources/tools/presentation/generator_plots.py +++ b/resources/tools/presentation/generator_plots.py @@ -261,13 +261,16 @@ def plot_throughput_speedup_analysis(plot, input_data): except (KeyError, TypeError): pass + if not throughput: + logging.warning("No data for the plot '{}'". + format(plot.get("title", ""))) + return + for test_name, test_vals in throughput.items(): for key, test_val in test_vals.items(): if test_val: throughput[test_name][key] = sum(test_val) / len(test_val) - print(throughput) - names = ['1 core', '2 cores', '4 cores'] x_vals = list() y_vals_1 = list() @@ -276,7 +279,7 @@ def plot_throughput_speedup_analysis(plot, input_data): for test_name, test_vals in throughput.items(): if test_vals["1"]: - x_vals.append("-".join(test_name.split('-')[:-1])) + x_vals.append("-".join(test_name.split('-')[1:-1])) y_vals_1.append(1) if test_vals["2"]: y_vals_2.append(