Fix output handling for dict of energy measurements
Energy dict has structure energy[cpus][domains]
@@ -523,7 +523,8 @@ class OutputHandler(object):
"""
self.add_column_to_xml(runSet.xml, 'cputime', cputime)
self.add_column_to_xml(runSet.xml, 'walltime', walltime)
- self.add_column_to_xml(runSet.xml, 'energy', energy)
+ for cpu, domains in energy.items():
+ self.add_column_to_xml(runSet.xml, 'energy-{}'.format(cpu), domains['package'])
def add_column_to_xml(self, xml, title, value, prefix="", value_suffix=""):
