Commit ec72c85d authored by lmueller's avatar lmueller Committed by Lukas Jelonek
Browse files

fixed tmhmm json format

parent c040c5fd
......@@ -59,10 +59,12 @@ with open(filename) as f:
key = elements[i][:elements[i].rfind('=')]
value = elements[i][elements[i].rfind('=')+1:]
if key == 'Topology':
line_dic[key] = parse_topology(value, elements[i-4][elements[i-4].rfind('=')+1:])
line_dic[key] = value
documents[elements[0]] = line_dic
line_dic['topology'] = parse_topology(value, int(elements[i-4][elements[i-4].rfind('=')+1:]))
elif key == 'PredHel':
line_dic[key] = int(value)
elif not key == 'len':
line_dic[key] = float(value)
documents[elements[0]] = {'computations': [{'tool': {'name': 'TMHMM', 'version': '2.0'}, 'results': line_dic}]}
output_filename = args.output
with open(output_filename, 'w') as o:
Supports Markdown
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