Commit 1d43735c authored by Marco Govoni's avatar Marco Govoni

Resolving the issue with wstat and wfreq rest api

parent df446344
......@@ -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))
......
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