Skip to content

Commit

Permalink
fix performance
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhoune committed Sep 17, 2023
1 parent 1cc1786 commit d0d0e1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enhancement/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def enhance_bot_model(event_log, bot_parser):
end_activities, bot_parser) # add the edge frequency
performance = pm4py.discovery.discover_performance_dfg(event_log)
# replace NaN values with None
performance = __replace_nan_with_null(performance)
performance = __replace_nan_with_null(performance[0])
return dfg, start_activities, end_activities, performance


Expand Down Expand Up @@ -210,7 +210,7 @@ def __replace_nan_with_null(obj):
:param obj: dictionary
:return: dictionary
"""

print(obj)
# Recursively replace nan values with null
def replace_nan(obj):
if isinstance(obj, dict):
Expand Down

0 comments on commit d0d0e1e

Please sign in to comment.