Skip to main content

Simulate Transit Distance After Pedestrianization

Project description

Simulate Transit Distance After Pedestrianization (STDAP)

Supply and Demand based pedestrianization, moving bus-stops accordingly

This package simulates the effects of pedestrianization upon the average distance to transit stops in Dutch cities. Pedestrianization can be performed based on the population and the number of interesting destinations nearby. Bus stops can be moved by either moving them to the nearest valid location, or by completely redesigning the bus-network. This package is build to be capable of large scale simulations in a reasonable time frame. Simulations can be run from the provided gui, or in Python code directly.

Features

  • Highly scalable simulations
  • Great visualization of results
  • Highly configurable

Installing / Getting started

The package can be installed using pip. Any dependencies are installed automatically:

pip install STDAP

The package can then be used to simulate pedestrianization in the following way:

from STDAP.core.main_class import Simulator
sim = Simulator(datasets)
city_options = sim.get_cities()
sim.choose_city(city_name)
### Run a single pedestrianization for detailed results.
sim.Sim_trans_dist_single(percentage, options)
### Simulate for a range of pedestrianization percentages for fast results.
sim.Sim_trans_dist_single(start, stop, count, options)

Datasets can be downloaded from the Dutch Central Bureau of Statistics (CBS).

The dashboard gui can be started with the following code:

from STDAP.gui.dashboard import show_dashboard
show_dashboard()
Configuration

The package is designed to be highly configurable. This can be done easily with the settings class.

from STDAP.config.settings import get_settings 
settings = get_settings()
settings.parameter = value

Configurable parameters and their default values can be obtained with the describe method:

print(settings.describe())

Links

Licensing

"The code in this project is licensed under MIT license."

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

stdap-1.0.3.tar.gz (35.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stdap-1.0.3-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

Details for the file stdap-1.0.3.tar.gz.

File metadata

  • Download URL: stdap-1.0.3.tar.gz
  • Upload date:
  • Size: 35.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for stdap-1.0.3.tar.gz
Algorithm Hash digest
SHA256 045528f437239759dbd68609e67e3adc9ac0b3b71ef66d9bd5a39575edfe6664
MD5 12ba2d905326babf27f1c33467477833
BLAKE2b-256 d9ead9add6aea942a1635106bbeba74f49ec1dae6a5392022e9059e46bf70d9f

See more details on using hashes here.

File details

Details for the file stdap-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: stdap-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 37.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for stdap-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 36126999a41d05b1aee81ff330a6d4a40431b69b7fa3a15184ef302f8097bb8d
MD5 7fd04debccb19639b598967ea15cc00b
BLAKE2b-256 5070ec1c75a58fdba969f61e781d74edd5d3b395c04c8a7167212136c3436b2a

See more details on using hashes here.

Supported by

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