From 061daf7907f1872972177d130dc42844fbfe9699 Mon Sep 17 00:00:00 2001 From: Adam Burke Date: Tue, 5 Mar 2024 14:51:28 +1000 Subject: [PATCH] Use alternative function already in koalas --- cgedq/mine.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/cgedq/mine.py b/cgedq/mine.py index be1d60c..db09d5b 100644 --- a/cgedq/mine.py +++ b/cgedq/mine.py @@ -144,7 +144,7 @@ def filterByTimeOnDate(sslog:set, years: int ) -> set: def exportNetToImage(vard,oname,pn): - dotStr = exportToDOT(pn) + dotStr = convert_net_to_dot(pn) export_DOT_to_image(vard,oname,dotStr) def mineByTime(vard,fname,sslog:set,years:int,noise=0.0,font=None): @@ -246,13 +246,6 @@ def main(): info("Done") -# -# TODO Push up into koalas models/petrinet -# - -def exportToDOT(net:LabelledPetriNet) -> str: - return convert_net_to_dot(PetriNetDOTFormatter(net)) - if __name__ == '__main__': main()