Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
west-public
westpy
Commits
1d43735c
Commit
1d43735c
authored
Sep 19, 2018
by
Marco Govoni
Browse files
Resolving the issue with wstat and wfreq rest api
parent
df446344
Changes
1
Hide whitespace changes
Inline
Side-by-side
westpy/session.py
View file @
1d43735c
...
...
@@ -149,7 +149,10 @@ class Session(object):
print
(
"MPI execution failed with the following error:
\n
"
+
str
(
output
))
return
None
output_data
=
str
(
output_json
[
'output'
]).
strip
()
output_dict
=
json
.
loads
(
output_json
[
'output_dict'
])
if
"pw"
in
executable
:
output_dict
=
json
.
loads
(
output_json
[
'output_dict'
])
else
:
output_dict
=
output_json
[
'output_dict'
]
# write the output file
with
open
(
outputFile
,
"w"
)
as
file
:
file
.
write
(
str
(
output_data
))
...
...
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