Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SOaAS
psot.repository
Commits
60e4da60
Commit
60e4da60
authored
Jan 24, 2018
by
Lukas Jelonek
Browse files
Fix bug: TMHMM json output result key should hold a list (solves #32)
Sem-Ver: bugfix
parent
d32426b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
psot/scripts/convert_tmhmm.py
View file @
60e4da60
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment