Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/hotfixes' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
fit-alessandro-berti committed Dec 14, 2023
2 parents cf23be2 + 384d6a1 commit f5ff50d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pm4py/conformance.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def conformance_diagnostics_token_based_replay(log: Union[EventLog, pd.DataFrame
return result


def conformance_diagnostics_alignments(log: Union[EventLog, pd.DataFrame], *args, multi_processing: bool = constants.ENABLE_MULTIPROCESSING_DEFAULT, activity_key: str = "concept:name", timestamp_key: str = "time:timestamp", case_id_key: str = "case:concept:name", variant_str : Optional[str] = None, return_diagnostics_dataframe: bool = constants.DEFAULT_RETURN_DIAGNOSTICS_DATAFRAME) -> List[Dict[str, Any]]:
def conformance_diagnostics_alignments(log: Union[EventLog, pd.DataFrame], *args, multi_processing: bool = constants.ENABLE_MULTIPROCESSING_DEFAULT, activity_key: str = "concept:name", timestamp_key: str = "time:timestamp", case_id_key: str = "case:concept:name", variant_str : Optional[str] = None, return_diagnostics_dataframe: bool = constants.DEFAULT_RETURN_DIAGNOSTICS_DATAFRAME, **kwargs) -> List[Dict[str, Any]]:
"""
Apply the alignments algorithm between a log and a process model.
The methods return the full alignment diagnostics.
Expand Down Expand Up @@ -152,6 +152,9 @@ def conformance_diagnostics_alignments(log: Union[EventLog, pd.DataFrame], *args
case_id_key = None

properties = get_properties(log, activity_key=activity_key, timestamp_key=timestamp_key, case_id_key=case_id_key)
if kwargs is not None:
for k, v in kwargs.items():
properties[k] = v

if len(args) == 3:
if type(args[0]) is PetriNet:
Expand Down

0 comments on commit f5ff50d

Please sign in to comment.