Loading src/aligater.py +12 −10 Original line number Diff line number Diff line Loading @@ -267,13 +267,14 @@ def complement_from_file(file_path: str, parser.ext_nfa_to_dot(comp, save_path) if pic_path is not None and comp is not None: if save_path is None: save_path = f"/tmp/{name}.dot" parser.ext_nfa_to_dot(comp, save_path) parser.dot_to_png(save_path, pic_path) os.remove(save_path) else: parser.dot_to_png(save_path, pic_path) comp.show_diagram(pic_path) # if save_path is None: # save_path = f"/tmp/{name}.dot" # parser.ext_nfa_to_dot(comp, save_path) # parser.dot_to_png(save_path, pic_path) # os.remove(save_path) # else: # parser.dot_to_png(save_path, pic_path) if xml_path is not None: Loading Loading @@ -450,12 +451,13 @@ def main(): if __name__ == "__main__": main() # input_path = "src/automata_libs/random_small/gate_31_r10_hg.dot" # csv_path = None # input_path = "src/automata_libs/automatark/univ/instance00624.mata" # xml_path = None # save_path = None # pic_path = None # header = False # gate_symbols = None # mode = "g" # verbose = True # complement_from_file(input_path, mode, gate_symbols, csv_path, save_path, pic_path, verbose) # options = [] # complement_from_file(input_path, mode, options, gate_symbols, xml_path, save_path, pic_path, verbose) src/experiments/experiments.ipynb +6623 −199 File changed.File size exceeds preview limit. View original file View changed file Loading
src/aligater.py +12 −10 Original line number Diff line number Diff line Loading @@ -267,13 +267,14 @@ def complement_from_file(file_path: str, parser.ext_nfa_to_dot(comp, save_path) if pic_path is not None and comp is not None: if save_path is None: save_path = f"/tmp/{name}.dot" parser.ext_nfa_to_dot(comp, save_path) parser.dot_to_png(save_path, pic_path) os.remove(save_path) else: parser.dot_to_png(save_path, pic_path) comp.show_diagram(pic_path) # if save_path is None: # save_path = f"/tmp/{name}.dot" # parser.ext_nfa_to_dot(comp, save_path) # parser.dot_to_png(save_path, pic_path) # os.remove(save_path) # else: # parser.dot_to_png(save_path, pic_path) if xml_path is not None: Loading Loading @@ -450,12 +451,13 @@ def main(): if __name__ == "__main__": main() # input_path = "src/automata_libs/random_small/gate_31_r10_hg.dot" # csv_path = None # input_path = "src/automata_libs/automatark/univ/instance00624.mata" # xml_path = None # save_path = None # pic_path = None # header = False # gate_symbols = None # mode = "g" # verbose = True # complement_from_file(input_path, mode, gate_symbols, csv_path, save_path, pic_path, verbose) # options = [] # complement_from_file(input_path, mode, options, gate_symbols, xml_path, save_path, pic_path, verbose)
src/experiments/experiments.ipynb +6623 −199 File changed.File size exceeds preview limit. View original file View changed file