Skip to content

Commit

Permalink
Finished storm output to csv conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrojak committed Aug 19, 2022
1 parent afe2e6f commit f2abe49
Show file tree
Hide file tree
Showing 4 changed files with 498 additions and 18 deletions.
7 changes: 3 additions & 4 deletions Galaxy/tools/PCTLParameterSynthesis/PCTLParameterSynthesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@

formula = PCTLparser().parse(args.formula)
if formula.success:
result = PCTL().parameter_synthesis(ts, formula, region)
f = open(args.output, "w")
f.write(result.decode("utf-8"))
f.close()
result = PCTL.parameter_synthesis(ts, formula, region)
df = PCTL.process_output(result)
df.to_csv(args.output, index=False)
else:
raise FormulaParsingError(formula.data, args.formula)
Loading

0 comments on commit f2abe49

Please sign in to comment.