Small utility library containing city provision metric used in other projects
Project description
Provisio
Small utility library containing city provision metric used in other projects
Base usage example
Use dongraphio to get city's IntermodalGraph and adjacency matrix between two geodataframes
pip install provisio
import pandas as pd
import geopandas as gpd
import networkx as nx
from provisio import *
builds = gpd.read_file("test_data/buildings.geojson")
services = gpd.read_file("test_data/services.geojson")
matrix = pd.read_csv("test_data/matrix.csv")
demanded_building = demands_from_buildings_by_normative(builds, 0.1)
prvs_buildings, prvs_services, prvs_links = get_service_provision(
services=services, demanded_buildings=demanded_buildings, adjacency_matrix=matrix, threshold=10
).get_provisions()
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
provisio-0.1.2.tar.gz
(5.9 kB
view details)
Built Distribution
File details
Details for the file provisio-0.1.2.tar.gz
.
File metadata
- Download URL: provisio-0.1.2.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a2cdda051d665c7a43a3b2acaaa94ac5a40c3c8f8dd51a93fcedf82062b8054 |
|
MD5 | 50ebcc50d20014ec39d7e5c59a8ef995 |
|
BLAKE2b-256 | c9abf960ca1466963e1540606a6d2680854f985b0e39dc6dfa0aa021c125a7ad |
File details
Details for the file provisio-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: provisio-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0915dccf774802980dfab23c630908758ef7f01a8244bb9a82d4abeaccbb4f6 |
|
MD5 | 430421b83f0ac2fa2a49977185a11120 |
|
BLAKE2b-256 | 57493cc3f3f8c71eda883cff07237ca2bf3515c995c3b3a35d871113b8914e77 |