process_mining / pm4py /examples /case_overlap_stat.py
linpershey's picture
Add 'pm4py/' from commit 'c95693428a77017cd5cfbf41cbdbb0ae844e90a4'
d89df1d
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()