https://github.com/dvrpc/tmc-summarizer
Process raw TMC data into more functional formats.
https://github.com/dvrpc/tmc-summarizer
Last synced: 3 months ago
JSON representation
Process raw TMC data into more functional formats.
- Host: GitHub
- URL: https://github.com/dvrpc/tmc-summarizer
- Owner: dvrpc
- License: mit
- Created: 2020-07-06T18:22:15.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-12-05T20:04:34.000Z (7 months ago)
- Last Synced: 2025-12-09T09:19:38.999Z (6 months ago)
- Language: Python
- Size: 6.45 MB
- Stars: 1
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tmc-summarizer
Process raw TMC data into more functional formats.
## Live Demo
Here: [http://167.172.146.34](http://167.172.146.34)
The codebase for the demo can be found at [`dvrpc\tmc-app`](https://github.com/dvrpc/tmc-app)

## Development environment setup:
Create and activate a virtual environment:
```bash
(base) $ conda create --name tmc_summarizer python=3.8
(base) $ conda activate tmc_summarizer
```
Install the third-party requirements:
```bash
(tmc_summarizer) $ pip install -r requirements.txt
```
Install this package in 'edit' mode
```bash
(tmc_summarizer) $ pip install -e .
```
## Execute via Python, CLI, or GUI:
In all cases, you'll need the proper python environment activated.
```bash
(base) $ conda activate tmc_summarizer
(tmc_summarizer) $
```
### Python
```python
>>> from tmc_summarizer import write_summary_file
>>> write_summary_file("/my/raw/data/folder", "/my/output/folder")
```
### Command Line Interface
Use the `tmc summarize` command to kick off the script. You need to specify a path where the data can be found.
```bash
(tmc_summarizer) $ tmc summarize my/data/
```
### Graphical User Interface
Use the `tmc gui` command to visually select your data folder.
```bash
(tmc_summarizer) $ tmc gui
```
## TODO
:white_check_mark: match functionality of prototype
:white_check_mark: add CLI hook
:white_check_mark: add GUI hook
:white_check_mark: write Flask-based web app
:black_square_button: write test suite
:black_square_button: test on Windows & Linux
## Questions:
`Light Vehicles` tab has `Peds in Crosswalk`, while the `Heavy Vehicles` tab has `Bikes in Crosswalk`. Is this intentional, or mislabeled data?