flowchart TD A0["Event Log"] A1["Snapshot Preparation - reshape_for_animations & generate_animation_df"] A2["Animation Generation - generate_animation"] A3["Layout Configuration - event_position_df"] A4["Simpy Resource Enhancement - CustomResource, Store, populate_store"] A5["Animation Facade - animate_activity_log"] A0 -- "Provides data for" --> A1 A0 -- "Is input to" --> A5 A1 -- "Provides data for" --> A2 A3 -- "Defines positions for" --> A1 A3 -- "Defines layout for" --> A2 A3 -- "Is input to" --> A5 A4 -- "Enables resource ID logging in" --> A0 A4 -- "Provides resource info to" --> A2 A5 -- "Calls" --> A1 A5 -- "Calls" --> A2
Tutorial: vidigi
vidigi
helps you visualize the output of discrete event simulations, especially those built with the Simpy library. It takes a detailed Event Log (tracking entities like patients through stages) and transforms it into an animated scatter plot using Plotly. This allows users to visually validate model logic and understand system dynamics like queues and resource usage over time. Key components handle preparing data into snapshots, generating the animation, configuring the visual layout, and enhancing Simpy resources for better tracking.
Source Repository: https://github.com/Bergam0t/vidigi
Chapters
- Animation Facade (
animate_activity_log
).qmd - Event Log
- Layout Configuration (
event_position_df
) - Simpy Resource Enhancement (
CustomResource
,Store
,populate_store
) - Snapshot Preparation (
reshape_for_animations
&generate_animation_df
) - Animation Generation (
generate_animation
)
Generated by AI Codebase Knowledge Builder