Skip to main content

Simulate Transit Distance After Pedestrianization

Project description

The project Logo

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.2.tar.gz (35.7 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.2-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stdap-1.0.2.tar.gz
  • Upload date:
  • Size: 35.7 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.2.tar.gz
Algorithm Hash digest
SHA256 63915668439a1c12f98f4d9d25d3ca8efdb5a466e48ec5f24812acb60c8d0608
MD5 05e4fe304a909a85230ddfa96a27c410
BLAKE2b-256 642d77308b7f147e3b0d9abbb2010bf930faaa4a478fb0e766ed72b2ad199669

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stdap-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7b29a6fbecda025045db67e8e00b2ec27e2bab2f718ddda410254849932ec912
MD5 c75b573168e218631305b0c8a8e90efa
BLAKE2b-256 a0081a85bb8c822a108f04d439a86151b6bb34d6b9ed6b522991f0f8f3e75d7d

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