process_mining / examples /case_overlap_stat.py
kota
initial commit
e60e568
raw
history blame
473 Bytes
import pm4py
import os
from pm4py.statistics.overlap.cases.log import get as case_overlap_get
def execute_script():
log = pm4py.read_xes(os.path.join("..", "tests", "input_data", "receipt.xes"))
# calculates the WIP statistics from the event log object.
# The WIP statistic associates to each case the number of cases open during the lifecycle of the case
wip = case_overlap_get.apply(log)
print(wip)
if __name__ == "__main__":
execute_script()