Commit e568c462 authored by Georgios Dagkakis's avatar Georgios Dagkakis

tab to get real exit results. only deterministic for now

parent 5373ab17
...@@ -13,13 +13,14 @@ class DefaultTabularExit(plugin.OutputPreparationPlugin): ...@@ -13,13 +13,14 @@ class DefaultTabularExit(plugin.OutputPreparationPlugin):
""" """
def postprocess(self, data): def postprocess(self, data):
print 'DefaultTabularExit' node=data['graph']['node']
print data['result']['result_list'] data['result']['result_list'][0]['exit_output'] = [['Exit Id','Throughput', 'Takt Time', 'Lifespan']]
# data['result']['result_list'].append({ for record in data['result']['result_list'][0]['elementList']:
# "key": "tabular results", family=record.get('family',None)
# "elementList": [], if family=='Exit':
# 'view_tabular_results':[['a','b'],[1,2]]} exitId=record['id']
# ) throughput=record['results'].get('throughput','undefined')
data['result']['result_list'][0]['exit_output'] = [['a','b'],[1,2]] taktTime=record['results'].get('takt_time','undefined')
print data['result']['result_list'] lifespan=record['results'].get('lifespan','undefined')
data['result']['result_list'][0]['exit_output'].append([exitId,throughput,taktTime,lifespan])
return data return data
\ No newline at end of file
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