Skip to content

Commit d51bd9e

Browse files
fix(pm4py): minor fix OCEL interleavings computation
1 parent c097b58 commit d51bd9e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pm4py/objects/ocel/util/log_ocel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def __get_events_dataframe(df: pd.DataFrame, activity_key: str, timestamp_key: s
125125
Internal method to get the events dataframe out of a traditional log stored as Pandas dataframe
126126
"""
127127
columns = {case_id_key}.union(set(x for x in df.columns if not x.startswith(case_attribute_prefix)))
128+
columns = list(columns)
128129
df = df[columns]
129130
df = df.rename(columns={activity_key: ocel_constants.DEFAULT_EVENT_ACTIVITY,
130131
timestamp_key: ocel_constants.DEFAULT_EVENT_TIMESTAMP,
@@ -139,6 +140,7 @@ def __get_objects_dataframe(df: pd.DataFrame, case_id_key: str, case_attribute_p
139140
Internal method to get the objects dataframe out of a traditional log stored as Pandas dataframe
140141
"""
141142
columns = {x for x in df.columns if x.startswith(case_attribute_prefix)}
143+
columns = list(columns)
142144
df = df[columns]
143145
df = df.rename(columns={case_id_key: ocel_constants.DEFAULT_OBJECT_ID})
144146
df = df.groupby(ocel_constants.DEFAULT_OBJECT_ID).first().reset_index()

0 commit comments

Comments
 (0)