Skip to content

tomdrozdz/data-generation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Urban Data Generation

DOI

Usage

The project uses hatch as a project manager. In order to install it run:

pip install hatch

To create a Python wheel and install it run:

hatch build
pip install dist/udg-*.whl

Examples

You can also run examples using hatch and the development environment:

hatch run example:data-generation
hatch run example:feature-tree
hatch run example:serialization
hatch run example:validation
hatch run example:real

Data

Some of the original data sources used in the project are unavailable on GitHub due to privacy concerns. The data might not also be available online without registration or special access. However, all the necessary information has been extracted and is a part of the repository in the _data directory.

All the scripts that were used to extract the data can be found in the scripts/data directory.

List of used data sources:

Scripts

The project also includes a few scripts for visualization and planning trips of agents using the OpenTripPlanner API. To use the planner you need to have a running instance of OpenTripPlanner. The necessary Dockerfile can be found in the otp directory.

Naming scheme

The project makes use of namespaces so the generator names can stay short:

udg.data.<city>.<source>.<generator>

e.g.:

from udg.data import wroclaw

generator = wroclaw.kbr.TransportModeDecisionTree()

Notes

  • We are assuming that there is a hierarchy of features, first we get the Household features, then based on those we generate Person features. For now households cannot depend on family or personal features.
  • The data used for the presentation was generated using the setup in examples/real.py script.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors