Commit e33666c6 authored by Ryan Herbert's avatar Ryan Herbert

sample_set.py refactor getStatData

ensure we apply decorators to fused data as well

See #2235
parent 711471b6
......@@ -725,11 +725,13 @@ def getStatData(results_file_ids):
d = {}
set_type = res.sample_type
headers = getStatHeaders()
d = getFusedStats(res.fused_file, res, d)
for head, htype, model in headers:
if htype == 'db':
d[head] = model.decorate(res[head])
d[head] = res[head]
d[head] = model.decorate(d[head])
log.debug("%s: %s" % (head, d[head]))
d['set_name'] = helpers[set_type].get_name(res[set_type])
d = getFusedStats(res.fused_file, res, d)
data.append(d)
return data
......
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