Skip to content

Commit

Permalink
handle key error
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhoune committed Feb 27, 2024
1 parent 31daf00 commit 1141782
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ BUILDPLATFORM=linux/arm64/v8
SOCIAL_BOT_MANAGER_IMAGE=registry.tech4comp.dbis.rwth-aachen.de/rwthacis/social-bot-manager:ma-lakhoune
MOBSOS_DATA_PROCESSING_IMAGE=registry.tech4comp.dbis.rwth-aachen.de/rwthacis/mobsos-data-processing:ma-lakhoune
SBF_IMAGE=registry.tech4comp.dbis.rwth-aachen.de/rwthacis/sbf-utils:ma-lakhoune
EVENT_LOG_GENERATOR_IMAGE=registry.tech4comp.dbis.rwth-aachen.de/rwthacis/event-log-generator:0.1.9
EVENT_LOG_GENERATOR_IMAGE=registry.tech4comp.dbis.rwth-aachen.de/rwthacis/event-log-generator:0.1.10
PM4BOTS_IMAGE=processminingforbots:latest
CORS_ORIGIN=http://localhost:8082
DEFAULT_BOT_PASSWORD=actingAgent
3 changes: 2 additions & 1 deletion discovery/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def bot_statistics(event_log):
return stats
stats['numberOfConversations'] = event_log.groupby('case:concept:name').ngroups
stats['numberOfStates'] = event_log['concept:name'].nunique()
stats['numberOfUsers'] = event_log['user'].nunique()
if 'user' in event_log.columns:
stats['numberOfUsers'] = event_log['user'].nunique()
stats['averageConversationLength'] = event_log.groupby(
'case:concept:name').size().mean()
stats['averageConversationDuration'] = event_log.groupby(
Expand Down

0 comments on commit 1141782

Please sign in to comment.