pm4py / pm4py-core

Public repository for the PM4Py (Process Mining for Python) project.
https://pm4py.fit.fraunhofer.de
GNU General Public License v3.0
722 stars 286 forks source link

The function that calculates the duration of a case is wrong #357

Closed DAAworld closed 1 year ago

DAAworld commented 1 year ago

stastics->traces->generic->pandas->case_statistics->get_cases_description。 The get_cases_description function just use the log's time:timestamp as start and end time. If the log already has start and end time and case duration = last time:timestamp - first start_timestamp. But now case duration = last time:timestamp - first time:timestamp that is the difference of the first and end event's end time.

fit-alessandro-berti commented 1 year ago

Dear @DAAworld yes, that function supports the specification of only the complete timestamp key as per now. We will change it to support the provision of a start timestamp key if possible.

DAAworld commented 1 year ago

Dear @DAAworld yes, that function supports the specification of only the complete timestamp key as per now. We will change it to support the provision of a start timestamp key if possible.

OK.

fit-alessandro-berti commented 1 year ago

we provided support in pm4py 2.3.2 for the specification of the start timestamp in the given function.