|
25 | 25 |
|
26 | 26 | from typing import List, Dict, Any, Union, Optional, Tuple, Set |
27 | 27 |
|
28 | | -from pm4py.objects.log.obj import EventLog, Trace, Event, EventStream |
| 28 | +from pm4py.objects.log.obj import EventLog, Trace, Event |
29 | 29 | from pm4py.objects.petri_net.obj import PetriNet, Marking |
30 | | -from pm4py.convert import convert_to_event_log |
31 | 30 | from pm4py.objects.process_tree.obj import ProcessTree |
32 | 31 | from pm4py.util import xes_constants, constants |
33 | 32 | from pm4py.utils import get_properties, __event_log_deprecation_warning |
@@ -91,6 +90,7 @@ def conformance_diagnostics_token_based_replay(log: Union[EventLog, pd.DataFrame |
91 | 90 | check_pandas_dataframe_columns(log, activity_key=activity_key, timestamp_key=timestamp_key, case_id_key=case_id_key) |
92 | 91 |
|
93 | 92 | if return_diagnostics_dataframe: |
| 93 | + from pm4py.convert import convert_to_event_log |
94 | 94 | log = convert_to_event_log(log, case_id_key=case_id_key) |
95 | 95 | case_id_key = None |
96 | 96 |
|
@@ -153,6 +153,7 @@ def conformance_diagnostics_alignments(log: Union[EventLog, pd.DataFrame], *args |
153 | 153 | check_pandas_dataframe_columns(log, activity_key=activity_key, timestamp_key=timestamp_key, case_id_key=case_id_key) |
154 | 154 |
|
155 | 155 | if return_diagnostics_dataframe: |
| 156 | + from pm4py.convert import convert_to_event_log |
156 | 157 | log = convert_to_event_log(log, case_id_key=case_id_key) |
157 | 158 | case_id_key = None |
158 | 159 |
|
@@ -761,6 +762,7 @@ def conformance_declare(log: Union[EventLog, pd.DataFrame], declare_model: Dict[ |
761 | 762 | case_id_key=case_id_key) |
762 | 763 |
|
763 | 764 | if return_diagnostics_dataframe: |
| 765 | + from pm4py.convert import convert_to_event_log |
764 | 766 | log = convert_to_event_log(log, case_id_key=case_id_key) |
765 | 767 | case_id_key = None |
766 | 768 |
|
@@ -820,6 +822,7 @@ def conformance_log_skeleton(log: Union[EventLog, pd.DataFrame], log_skeleton: D |
820 | 822 | check_pandas_dataframe_columns(log, activity_key=activity_key, timestamp_key=timestamp_key, case_id_key=case_id_key) |
821 | 823 |
|
822 | 824 | if return_diagnostics_dataframe: |
| 825 | + from pm4py.convert import convert_to_event_log |
823 | 826 | log = convert_to_event_log(log, case_id_key=case_id_key) |
824 | 827 | case_id_key = None |
825 | 828 |
|
|
0 commit comments