Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
runmingl committed Jul 6, 2023
1 parent 566bc83 commit ad57286
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ graphviz>=0.20.1
dot2tex>=2.11.3
lark>=1.1.5
lark-parser>=0.11.3
pylogics>=0.2.1
3 changes: 2 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def ltl2regex(self, formula: str):
def ltl2timeline(self, formula: str, filename: str = "ltl", output_format: str = "pdf"):
g = make_graph(aut_to_regex(aut_to_graph(
ltl_to_aut(formula))), filename, output_format)
g.view()
g.render()
if output_format == 'latex':
gv_file = open(f"{filename}1.gv", "w")
tex_file = open(f"{filename}.tex", "w")
Expand All @@ -30,6 +30,7 @@ def ltl2timeline(self, formula: str, filename: str = "ltl", output_format: str =
clean_up(f"{filename}.gv.pdf")
clean_up(f"{filename}1.gv")
post_process_latex(filename)
print(f"Image file `{filename}` generated.")


if __name__ == '__main__':
Expand Down

0 comments on commit ad57286

Please sign in to comment.