Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ruth.simulator.Simulation object also as an input #12

Open
msurkovsky opened this issue Mar 16, 2023 · 1 comment
Open

Use ruth.simulator.Simulation object also as an input #12

msurkovsky opened this issue Mar 16, 2023 · 1 comment
Assignees

Comments

@msurkovsky
Copy link
Collaborator

Currently the input is a pandas.DataFrame with a state of all vehicles. This file is at the beginning used to initialise the Simulation. In case the Simulation will be used as input as well, the user interface would be more intuitive. Moreover, the Simulation also stores the used map, hence the simulation state would be tight with the map together. This avoids usage different version of data in map and input file as the map if not present is downloaded from OSM.

@msurkovsky
Copy link
Collaborator Author

@paulo308 this is not an onboarding task. It is neither difficult, but it involves changes over several files. Nevertheless, all functionality is already there and it is just about reorganisation of several functions.

It is not high-priority. But it is a good refactoring task which unifies the user API of ruth-simulator (no need of --continue-from option) and provides the unified input. Moreover, it tights together the version of used map with simulation data. If this two are misaligned it causes some weird errors; therefore, transfer of date among different computers will be less error prone.

I did this tightening several weeks ago to have single input for visualisation of traffic flow. Now when I'm thinking about it, it would be great to have the same in the simulator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants