X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_plots.py;h=1d6bbaabf57cd4ce70d009b0dd7e469a8de050f2;hb=3faf5e9192489b8f850757d6179311a59243a95b;hp=1bfbda1a1bf8fb597e26c82650a07bc4952c2d27;hpb=093e1a0bfa7257048e6d12fe9fc9fbf1a9f98e49;p=csit.git diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py index 1bfbda1a1b..1d6bbaabf5 100644 --- a/resources/tools/presentation/generator_plots.py +++ b/resources/tools/presentation/generator_plots.py @@ -91,7 +91,7 @@ def generate_plots(spec, data): for index, plot in enumerate(spec.plots): try: logging.info(f" Plot nr {index + 1}: {plot.get(u'title', u'')}") - plot[u"limits"] = spec.configuration[u"limits"] + plot[u"limits"] = spec.environment[u"limits"] generator[plot[u"algorithm"]](plot, data) logging.info(u" Done.") except NameError as err: @@ -761,8 +761,10 @@ def plot_ndrpdr_box_name(plot, input_data): hoverinfo=u"y+name" ) ) - data_y_max.append(max(vals)) - + try: + data_y_max.append(max(vals)) + except ValueError as err: + logging.warning(f"No values to use.\n{err!r}") try: # Create plot layout = deepcopy(plot[u"layout"]) @@ -1046,6 +1048,8 @@ def plot_tsa_name(plot, input_data): limit = plot[u"limits"][u"nic"][u"x553"] elif u"cx556a" in test_name: limit = plot[u"limits"][u"nic"][u"cx556a"] + elif u"e810cq" in test_name: + limit = plot[u"limits"][u"nic"][u"e810cq"] else: limit = 0 if limit > nic_limit: