uxsim.ResultGUIViewer.ResultGUIViewer¶
Interactive viewer for UXsim simulation results using PyQt5. After running the simulation, you can launch this viewer to visualize the simulation results interactively. GUI part was mainly written by Claude 3 Opus under supervision of Toru Seo.
Examples
- Usage:
>>> ... #define the World object W >>> W.exec_simulation() #you run the simulation. >>> from uxsim.ResultGUIViewer import launch_World_viewer >>> launch_World_viewer(W)
Functions
|
Launch the interactive viewer for the simulation result of the given World object. |
Classes
|
|
|
|
|
|
|
|
|
|
|
|
|
- class uxsim.ResultGUIViewer.ResultGUIViewer.EdgeItem(name, start_node, end_node, density_list, Link)[source]¶
- class uxsim.ResultGUIViewer.ResultGUIViewer.MainWindow(W, nodes, edges, vehicle_list, tmax, dt)[source]¶
- class uxsim.ResultGUIViewer.ResultGUIViewer.PandasModel(data)[source]¶
- uxsim.ResultGUIViewer.ResultGUIViewer.launch_World_viewer(W, return_app_window=False)[source]¶
Launch the interactive viewer for the simulation result of the given World object.
- Parameters:
W (World) – The World object to visualize.
return_app_window (bool, optional) – If True, this function returns the QApplication and MainWindow objects. Default is False.