Skip to main content

Fast and lightweight file parsers for SUMO(traffic simulator) output

Project description

What's this?

Fast and lightweight file parsers for Eclipse SUMO(traffic simulator) output.

The SUMO outputs are huge in size and hard to handle.

SUMO team provides scripts to convert from xml into CSV, however, the procedure is troublesome (downloading XSD, executing python script...)

Also, machine learning users take care of matrix data format.

This package provides an easy-to-call python interface to obtain matrix form from SUMO xml files.

Contributions

  • easy-to-call python interfaces to obtain matrix form from SUMO xml files
  • easy-to-call python interfaces to visualize SUMO simulations

Example of animation

Install

pip install sumo-output-parsers

Some submodules are not ready to use by default for which we avoid errors relating Proproj or Cartopy.

If you'd like to depict car flows or detector positions, install with

pip install "sumo-output-parsers[full]"

Sample

See sample.py

Test

pytest tests/

If your package-dependency is complete including packages for visualization, then pytest tests/ --visualization

For developers

Build with poetry.

Install Guide

When you encounter any dependency issues, I recommend to use conda. cartopy and proj cause the dependency issue frequently. Conda helps you to install the compiled binaries. See Proj documentation.

License

@misc{sumo-output-parsers,
  author = {Kensuke Mitsuzawa},
  title = {sumo_output_parsers},
  year = {2021},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{}},
}

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_output_parsers-0.52.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

sumo_output_parsers-0.52-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file sumo_output_parsers-0.52.tar.gz.

File metadata

  • Download URL: sumo_output_parsers-0.52.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.8.8 Linux/5.4.0-92-generic

File hashes

Hashes for sumo_output_parsers-0.52.tar.gz
Algorithm Hash digest
SHA256 65dd12782b210429e6609a5dcaaa89dc44f8f4a0906364d1a84f994047ba6160
MD5 2380e00fbf16cd40f72bb7418acc076e
BLAKE2b-256 d7b267314e85b7051c3ab7ed137bb2629a94e2b9f999ac477503ec993e4bd121

See more details on using hashes here.

File details

Details for the file sumo_output_parsers-0.52-py3-none-any.whl.

File metadata

File hashes

Hashes for sumo_output_parsers-0.52-py3-none-any.whl
Algorithm Hash digest
SHA256 5fd1ac5e28a412e7d7af9c165a298521f34404f0081fd04c0afaaab0a1090b19
MD5 66db8b68270c3aad9252045c6f5d0e03
BLAKE2b-256 26785a373f1954e38f98d6f8de84734ced47211bd104d970c6d479aff770d0cb

See more details on using hashes here.

Supported by

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