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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sumo_output_parsers-0.53.tar.gz
.
File metadata
- Download URL: sumo_output_parsers-0.53.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd35d2684b080684dfb6d8edb402928949dd12fa19d8c58c27e2b9cefd96cef0 |
|
MD5 | bd9959760dc0f0805b9fdd0713b6de79 |
|
BLAKE2b-256 | 4465c20caffa9b735d85be131542d37e260486847c8ed522a2585430a0765c53 |
File details
Details for the file sumo_output_parsers-0.53-py3-none-any.whl
.
File metadata
- Download URL: sumo_output_parsers-0.53-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.8.8 Linux/5.4.0-92-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86972894e837dffb76173f8400d889bd6985ff4b11d10b263f820addbae00b7c |
|
MD5 | 2614ad583a6334d213d2dfe86a3c1eb3 |
|
BLAKE2b-256 | 28328ff777b11444e75755b0eca9533e4394bc05f8e7819d42383c3929fb75b0 |