Function reference
All-In-One Animation Functions
| animation.animate_activity_log | Generate an animated visualization of patient flow through a system. |
Step-By-Step Functions
| prep.reshape_for_animations | Reshape event log data for animation purposes. |
| prep.generate_animation_df | Generate a DataFrame for animation purposes by adding position information to entity data. |
| animation.generate_animation | Generate an animated visualization of patient flow through a system. |
Animation Enhancers
| animation.add_repeating_overlay | Add a repeating overlay (rectangle and text) to an animated Plotly figure |
Simpy Resource Classes
| resources.VidigiResource | A simple resource class with an ID attribute for use in VidigiStore and VidigiPriorityStore. |
| resources.VidigiStore | A wrapper around SimPy’s Store that allows using a context manager pattern |
| resources.VidigiPriorityStore | An optimized SimPy priority store that eliminates delays between resource |
| resources.populate_store | Populate a SimPy Store (or VidigiPriorityStore) with VidigiResource objects. |
Event Logging Utility Functions and Classes
| logging.EventLogger | |
| logging.TrialLogger | A container and analysis utility for managing multiple event logs from repeated |
Event Positioning Utility Functions and Classes
| utils.EventPosition | Pydantic model for a single event position. |
| utils.create_event_position_df | Creates a DataFrame for event positions from a list of EventPosition objects. |
Process Map-Style Outputs
| process_mapping.add_sim_timestamp | Add a pseudo-timestamp column to a simulation event log. |
| process_mapping.discover_dfg | Discover a Directly-Follows Graph (DFG) from an event log. |
| process_mapping.dfg_to_graphviz | Render a Directly-Follows Graph (DFG) as a Graphviz diagram. |
| process_mapping.process_nodes_and_edges_for_cytoscape | Convert DFG node and edge tables into Cytoscape-compatible elements. |
| process_mapping.dfg_to_cytoscape | Convert DFG node/edge tables to interactive Cytoscape widget. |
| process_mapping.dfg_to_cytoscape_streamlit | Render a Directly-Follows Graph (DFG) interactively in Streamlit using Cytoscape. |
Streamlit Utility Functions
| utils.streamlit_play_all | Programmatically triggers all ‘Play’ buttons in Plotly animations embedded in Streamlit using JavaScript. |
ciw Utility Functions
| ciw.event_log_from_ciw_recs | Build an event log from a ciw.data_record object. |
legacy Functions
| resources.VidigiPriorityStoreLegacy | A SimPy store that processes requests with priority. |