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