Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oi-analytics/oia-transport-archive
Archive of Transport Risk Analysis preprocessing and db scripts
https://github.com/oi-analytics/oia-transport-archive
Last synced: 2 months ago
JSON representation
Archive of Transport Risk Analysis preprocessing and db scripts
- Host: GitHub
- URL: https://github.com/oi-analytics/oia-transport-archive
- Owner: oi-analytics
- Created: 2018-09-27T16:20:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-09T16:22:11.000Z (about 5 years ago)
- Last Synced: 2024-08-08T18:25:07.924Z (6 months ago)
- Language: Python
- Homepage:
- Size: 8.43 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Authors: AUTHORS.rst
Awesome Lists containing this project
- awesome-starred - oi-analytics/oia-transport-archive - Archive of Transport Risk Analysis preprocessing and db scripts (others)
README
# Transport Preprocessing codes
Data processing, modelling, analysis and visualisation.
## Requirements
### Python and libraries
Python is required to run the scripts in this project. We suggest using
[miniconda](https://conda.io/miniconda.html) to set up an environment and manage library
dependencies.Create a conda environment from the `environment.yml` definition:
conda env create -f environment.yml
conda install python-igraphSee http://igraph.org/python/ for instructions on Windows installation of `python-igraph`.
Activate the environment:
conda activate vietnam-transport
Set up the `vtra` package (this project) for development use:
python setup.py develop
### GAMS
The economic model uses [GAMS](https://www.gams.com/) (General Algebraic Modeling System) via
its python API. GAMS provide [installation and
licensing](https://www.gams.com/latest/docs/UG_MAIN.htm) instructions.### Postgres and PostGIS
Much of the data processing requires access to a [PostgreSQL](https://www.postgresql.org/)
database with the [PostGIS](http://postgis.net/) extension installed and enabled.## Configuration
The location of data and output files are configured by a `config.json` file. Copy
`config.template.json` and edit the file paths and database connection details to locate
the files on your system and access your database.## Development notes
### Notebooks in git
Make sure not to commit data inadvertently if working with jupyter notebooks. Suggest using
[nbstripout](https://github.com/kynan/nbstripout) to automatically strip output.Install git hooks to filter notebooks when committing to git:
cd /path/to/vietnam-transport
nbstripout --install## Acknowledgements
All code is copyright Oxford Infrastructure Analytics.