Skip to content

Commit

Permalink
feat(pm4py): removed strong dependencies on intervaltree and stringdist
Browse files Browse the repository at this point in the history
removed strong dependencies on intervaltree and stringdist
  • Loading branch information
fit-alessandro-berti committed Oct 14, 2021
1 parent 32c396b commit 53af01f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
6 changes: 5 additions & 1 deletion pm4py/algo/conformance/alignments/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
from pm4py.algo.conformance.alignments import decomposed, dfg, edit_distance, petri_net, process_tree
from pm4py.algo.conformance.alignments import decomposed, dfg, petri_net, process_tree
import pkgutil

if pkgutil.find_loader("stringdist"):
from pm4py.algo.conformance.alignments import edit_distance
5 changes: 4 additions & 1 deletion pm4py/algo/transformation/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
from pm4py.algo.transformation import log_to_trie, log_to_features, log_to_interval_tree
from pm4py.algo.transformation import log_to_trie, log_to_features
import pkgutil
if pkgutil.find_loader("intervaltree"):
from pm4py.algo.transformation import log_to_interval_tree
6 changes: 4 additions & 2 deletions pm4py/statistics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from pm4py.statistics import traces, attributes, variants, start_activities, end_activities, util, \
sojourn_time, concurrent_activities, eventually_follows, overlap, rework

sojourn_time, concurrent_activities, eventually_follows, rework
import pkgutil
if pkgutil.find_loader("intervaltree"):
from pm4py.statistics import overlap

0 comments on commit 53af01f

Please sign in to comment.