PAL: Fix heatmap graph 44/34444/1
authorTibor Frank <tifrank@cisco.com>
Wed, 10 Nov 2021 10:58:53 +0000 (11:58 +0100)
committerTibor Frank <tifrank@cisco.com>
Wed, 10 Nov 2021 10:58:53 +0000 (11:58 +0100)
Change-Id: I4992c8f4ae63aa25794cdab98532722c45263e8e
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/tools/presentation/generator_plots.py

index da30caf..661823c 100644 (file)
@@ -1522,8 +1522,6 @@ def plot_nf_heatmap(plot, input_data):
     regex_test_name = re.compile(r'^.*-(\d+ch|\d+pl)-'
                                  r'(\d+mif|\d+vh)-'
                                  r'(\d+vm\d+t|\d+dcr\d+t|\d+dcr\d+c).*$')
-    vals = dict()
-
     # Transform the data
     logging.info(
         f"    Creating the data set for the {plot.get(u'type', u'')} "
@@ -1540,6 +1538,7 @@ def plot_nf_heatmap(plot, input_data):
 
     for ttype in plot.get(u"test-type", (u"ndr", u"pdr")):
         for core in plot.get(u"core", tuple()):
+            vals = dict()
             for item in plot.get(u"include", tuple()):
                 reg_ex = re.compile(str(item.format(core=core)).lower())
                 for job in in_data: