Commit 6e3e5c63 authored by Joanne Hugé's avatar Joanne Hugé

Add ignored metadata array and ignore board names

parent e84136dc
...@@ -30,6 +30,7 @@ class MeasureSetHandler: ...@@ -30,6 +30,7 @@ class MeasureSetHandler:
graphs_dir = "{}/graphs".format(measures_dir) graphs_dir = "{}/graphs".format(measures_dir)
measure_sets_file_name = "measure_sets.json" measure_sets_file_name = "measure_sets.json"
measure_sets_path = measures_dir + "/" + measure_sets_file_name measure_sets_path = measures_dir + "/" + measure_sets_file_name
ignored_metadata = ["board"]
def __init__(self): def __init__(self):
with open(MeasureSetHandler.measure_sets_path) as measure_sets_file: with open(MeasureSetHandler.measure_sets_path) as measure_sets_file:
...@@ -233,6 +234,7 @@ class MeasureSetHandler: ...@@ -233,6 +234,7 @@ class MeasureSetHandler:
# Generate the metadata mask, by grouping the identical metadata # Generate the metadata mask, by grouping the identical metadata
for measure in measures[1:]: for measure in measures[1:]:
for metadata_name in measure.metadata: for metadata_name in measure.metadata:
if metadata_name not in self.ignored_metadata:
# If it is not already in the metadata mask # If it is not already in the metadata mask
if metadata_name not in metadata_mask: if metadata_name not in metadata_mask:
# If there are two different metadata, they are added to the mask # If there are two different metadata, they are added to the mask
...@@ -244,6 +246,7 @@ class MeasureSetHandler: ...@@ -244,6 +246,7 @@ class MeasureSetHandler:
# Compute the identical metadata # Compute the identical metadata
common_metadata = [] common_metadata = []
for metadata_name in first_metadata: for metadata_name in first_metadata:
if metadata_name not in self.ignored_metadata:
if metadata_name not in metadata_mask: if metadata_name not in metadata_mask:
if metadata_name in MeasureSet.abbreviations: if metadata_name in MeasureSet.abbreviations:
common_metadata.append("{}: {}".format(MeasureSet.abbreviations[metadata_name], first_metadata[metadata_name])) common_metadata.append("{}: {}".format(MeasureSet.abbreviations[metadata_name], first_metadata[metadata_name]))
...@@ -267,6 +270,7 @@ class MeasureSetHandler: ...@@ -267,6 +270,7 @@ class MeasureSetHandler:
report.write("### Description of the metadata associated to each test\n\n") report.write("### Description of the metadata associated to each test\n\n")
for abbr_name in MeasureSet.metadata_descriptions: for abbr_name in MeasureSet.metadata_descriptions:
if abbr_name not in self.ignored_metadata:
report.write("* **{}**: {}\n".format(abbr_name, MeasureSet.metadata_descriptions[abbr_name])) report.write("* **{}**: {}\n".format(abbr_name, MeasureSet.metadata_descriptions[abbr_name]))
report.write("\n") report.write("\n")
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment