X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_plots.py;h=51b29407c3c6e1a81327ba5261f325d696ab9ae7;hp=a488bdf8453cfcc4b9272c946c3c6d0cb830b8ce;hb=d77d62178fa257cf84099811b9177b9e224a2dd8;hpb=b641b5bf12a0d1b63ac9afb7c89133297d3b63fe diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py index a488bdf845..51b29407c3 100644 --- a/resources/tools/presentation/generator_plots.py +++ b/resources/tools/presentation/generator_plots.py @@ -437,7 +437,11 @@ def plot_throughput_speedup_analysis(plot, input_data): vals[name]["diff"] = \ [(y_val_1 - y_1c_max[test_name]) * 100 / y_val_1, None, None] - val_max = max(max(vals[name]["val"], vals[name]["ideal"])) + try: + val_max = max(max(vals[name]["val"], vals[name]["ideal"])) + except ValueError as err: + logging.error(err) + continue if val_max: y_max.append(int((val_max / 10) + 1) * 10) @@ -502,8 +506,11 @@ def plot_throughput_speedup_analysis(plot, input_data): x_vals = [1, 2, 4] # Limits: - threshold = 1.1 * max(y_max) # 10% - + try: + threshold = 1.1 * max(y_max) # 10% + except ValueError as err: + logging.error(err) + return nic_limit /= 1000000.0 if nic_limit < threshold: traces.append(plgo.Scatter(