Skip to content

Commit

Permalink
fix(pm4py): fixed Pandas performance DFG discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
fit-alessandro-berti committed Oct 3, 2021
1 parent 9470264 commit 6e26b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pm4py/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def discover_performance_dfg(log: Union[EventLog, pd.DataFrame]) -> Tuple[dict,
activity_key = properties[constants.PARAMETER_CONSTANT_ACTIVITY_KEY] if constants.PARAMETER_CONSTANT_ACTIVITY_KEY in properties else xes_constants.DEFAULT_NAME_KEY
timestamp_key = properties[constants.PARAMETER_CONSTANT_TIMESTAMP_KEY] if constants.PARAMETER_CONSTANT_TIMESTAMP_KEY in properties else xes_constants.DEFAULT_TIMESTAMP_KEY
case_id_key = properties[constants.PARAMETER_CONSTANT_CASEID_KEY] if constants.PARAMETER_CONSTANT_CASEID_KEY in properties else constants.CASE_CONCEPT_NAME
dfg = get_dfg_graph(log, activity_key=activity_key, timestamp_key=timestamp_key, case_id_glue=case_id_key, measure="performance")
dfg = get_dfg_graph(log, activity_key=activity_key, timestamp_key=timestamp_key, case_id_glue=case_id_key, measure="performance", perf_aggregation_key="all")
from pm4py.statistics.start_activities.pandas import get as start_activities_module
from pm4py.statistics.end_activities.pandas import get as end_activities_module
start_activities = start_activities_module.get_start_activities(log, parameters=properties)
Expand Down

0 comments on commit 6e26b00

Please sign in to comment.