Skip to content

Commit 07cfea9

Browse files
Merge remote-tracking branch 'upstream/hotfixes' into release
2 parents b4162bb + 60f55f6 commit 07cfea9

2 files changed

Lines changed: 1 addition & 21 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Changelog of pm4py
22

3+
# pm4py 2.7.22 (2025.XX.YY)
34

45
# pm4py 2.7.20 (2026.03.11)
56

examples/process_cubes.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -97,27 +97,6 @@ def execute_script():
9797
traceback.print_exc()
9898
#input()
9999

100-
try:
101-
# let's try to build another process cube
102-
# as rows, we divide cases based on their arrival rate (time between start of the current case and the start of the previously started case)
103-
# as columns, we divide cases based on their finish rate (time between end of the nextly terminated case and the end of the current case)
104-
105-
cube_df3, cell_case_dict3 = process_cube_builder.apply(feature_table, x_col="@@arrival_rate", y_col="@@finish_rate", agg_col="@@sojourn_time", parameters={
106-
"x_bins": [0, 200000, 500000, 800000, 1000000],
107-
"y_bins": [0, 300000, 600000, 900000, 1000000]
108-
})
109-
110-
print(cube_df3)
111-
#print(cell_case_dict3)
112-
113-
# now, let's focus on the cases which distance from the previously started case and from the nextly terminated
114-
# case is lower than one day
115-
cell = [x for x in cell_case_dict3 if x[0].left < 86400 < x[0].right and x[1].left < 86400 < x[1].right][0]
116-
filt_df3 = dataframe[dataframe["case:concept:name"].isin(cell_case_dict3[cell])]
117-
print(filt_df3)
118-
except:
119-
traceback.print_exc()
120-
121100

122101
if __name__ == "__main__":
123102
execute_script()

0 commit comments

Comments
 (0)