pm4py / pm4py-core

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

Enhancements to Timeline DFG Graph Visualization: Cleanup and Error Handling Improvement #479

Closed nicoelbert closed 5 months ago

nicoelbert commented 5 months ago

This pull request addresses two specific issues to improve the graph visualization feature for timeline dfgs:

Cleanup of Unused and Erroneous Import Removed the unused import statement from pm4py.statistics.sojourn_time.log import get as soj_time_get, which referred to a non-existent module and could cause errors.

Enhanced Error Handling for Data Alignment Updated error handling in the graph node creation process to better manage data misalignment. Now, encountering data without a second element issues informative warnings instead of halting the process. This approach ensures the visualization remains functional and user-friendly despite data inconsistencies.

Impact: These changes enhance the usability and reliability of the graph visualization tool, making it more resilient to data format variations and reducing potential sources of confusion or error.