Commit 60e4da60 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Fix bug: TMHMM json output result key should hold a list (solves #32)

Sem-Ver: bugfix
parent d32426b0
......@@ -64,7 +64,7 @@ with open(filename) as f:
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}]}
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