def test_discovery_ocfg_p2(self): target_path = os.path.join("test_output_data", "model.svg") ocel = pm4py.read_ocel( os.path.join("input_data", "ocel", "example_log.jsonocel")) ocdfg = pm4py.discover_ocdfg(ocel) pm4py.save_vis_ocdfg(ocdfg, target_path, annotation="performance", act_metric="unique_objects", edge_metric="ev_couples", act_threshold=2, edge_threshold=1) os.remove(target_path)
def test_discovery_ocfg_p6(self): target_path = os.path.join("test_output_data", "model.svg") ocel = pm4py.read_ocel( os.path.join("input_data", "ocel", "example_log.jsonocel")) ocdfg = pm4py.discover_ocdfg(ocel, business_hours=True) pm4py.save_vis_ocdfg(ocdfg, target_path, annotation="performance", act_metric="unique_objects", edge_metric="total_objects", act_threshold=2, edge_threshold=1, performance_aggregation="median") os.remove(target_path)