Skip to content

Commit

Permalink
Merge pull request #65 from sybila/64-pctl-output
Browse files Browse the repository at this point in the history
PCTL synthesis output to CSV
  • Loading branch information
xtrojak authored Aug 19, 2022
2 parents 522e413 + f2abe49 commit eea87c1
Show file tree
Hide file tree
Showing 5 changed files with 1,109 additions and 4 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 eea87c1

Please sign in to comment.