process-analytics / bpmn-visualization-pm4py

Example of integration between bpmn-visualization and pm4py
GNU General Public License v3.0
10 stars 5 forks source link

bug: check NaN frequencies #41

Closed assynour closed 1 year ago

assynour commented 1 year ago

When computing frequency statistics, pm4py returns 'None' for elements that are not visited during the alignment phase. Frequency statistics were added without a prior check for NaN frequency values which generated errors and resulted in an unexpected behavior in the frontend part (overlays with NaN labels, see figure below)

bug-discovery

After the fix, no style or overlays are added to elements that have not been visited and therefore do not have a frequency:

after-bug-nan-fix