Skip to main content

A Python interface for simulating public transport systems using SUMO.

Project description

sumo_pts

A Python interface for simulating public transport systems using SUMO.



Urban transportation systems are becoming increasingly complex due to the growing number of vehicles and varying traffic conditions. To address these challenges, this project utilized SUMO to model the bus transportation system and road network of Aachen. The developed library can be applied to study any city. By modifying road speed limits and simulating diverse traffic scenarios, the project aimed to assess the impact of individual streets on bus delays and creating a machine learning model to predict these delays.

Requirements

To use this library, you need to have SUMO installed on your device. Follow the instructions on the SUMO webpage specific to your operating system. Below is a quick installation guide for Linux:

sudo add-apt-repository ppa:sumo/stable
sudo apt-get update
sudo apt-get install sumo sumo-tools sumo-doc

Installation instructions

To install the package available on PyPI, you can run the following command:

pip install sumo-pts

If you'd like to experiment with the library or develop new features, feel free to install it directly from this repository by running:

python3 -m pip install .

Usage

You can now import various modules and begin using the package. Below is an example code for running a graphical simulation:

from sumo_pts.simulation import SimulationHandler, SimConfig

acchen_sim = SimulationHandler("aachen.sumocfg")
acchen_sim.run(gui=True)

Contributing

Contributions are highly encouraged! If you're interested in contributing, please follow the steps outlined below, and make sure that your code complies with the project's coding standards.

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add some feature').
  5. Push to the branch (git push origin feature-branch).
  6. Open a Pull Request.

Acknowledgments

This project was developed as part of the Sustainable Computational Engineering course at RWTH-Aachen University. I would like to express my gratitude to the course instructors for their guidance throughout the project. Special thanks to the developers of SUMO and the contributors to the open-source community who made this project possible.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sumo_pts-0.2.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sumo_pts-0.2-py3-none-any.whl (102.5 kB view details)

Uploaded Python 3

File details

Details for the file sumo_pts-0.2.tar.gz.

File metadata

  • Download URL: sumo_pts-0.2.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for sumo_pts-0.2.tar.gz
Algorithm Hash digest
SHA256 74f4466aa205ae1bc1badefa6b3d33be4109b72a44b950e00bb6a451cd71c454
MD5 2539145f505b51594b0e82bc75ccb585
BLAKE2b-256 dd249467338efe02ea98263a442d182a0a5abd4a4b7d690a47e1379dc6656f9e

See more details on using hashes here.

File details

Details for the file sumo_pts-0.2-py3-none-any.whl.

File metadata

  • Download URL: sumo_pts-0.2-py3-none-any.whl
  • Upload date:
  • Size: 102.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for sumo_pts-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0a3bdb50f043e93bdcb5c34d3e4c5f6fce03b868192b96516e7eeac0811fd451
MD5 05eb725483c3c8e94ec87f2cb5b5b06e
BLAKE2b-256 031952b6d3c60e162e10d222a64b912c0179cbb80ffbf358820fb1df22136dc9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page