Skip to content

Commit

Permalink
Merge branch '141-simplied-interface-alignments-support-log2log-align…
Browse files Browse the repository at this point in the history
…ments' into 'integration'

[Priority 2] Simplied interface alignments support log2log alignments

Closes #141

See merge request process-mining/pm4py/pm4py-core!1094
  • Loading branch information
fit-alessandro-berti committed Oct 9, 2023
2 parents b254210 + 59e7e4a commit 5aedd30
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pm4py/conformance.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@ def conformance_diagnostics_alignments(log: Union[EventLog, pd.DataFrame], *args
else:
result = search_graph_pt.apply(log, args[0], parameters=properties)

return result
elif type(args[0]) in [EventLog, pd.DataFrame]:
# edit distance alignments (log2log)
from pm4py.algo.conformance.alignments.edit_distance import algorithm as edit_distance_alignments
result = edit_distance_alignments.apply(log, args[0], parameters=properties)

return result
# try to convert to Petri net
import pm4py
Expand Down

0 comments on commit 5aedd30

Please sign in to comment.