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.1.tar.gz
(5.8 kB
view details)
Built Distribution
File details
Details for the file provisio-0.1.1.tar.gz
.
File metadata
- Download URL: provisio-0.1.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbf0e32d12626ba564134f14f11a110ec847583ab456dc8696a521c850b858a4 |
|
MD5 | a173965d34d3a8f0b2bd7711f3ba3542 |
|
BLAKE2b-256 | 9d18829ad652608bb0a76aa93a2a329ebdf617a3f121c451b8017d7f42164e16 |
File details
Details for the file provisio-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: provisio-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9784ba2878c5177a61dd07c3d6f889ef49c00ccba91601200e51c31d28e1916 |
|
MD5 | 9ebe66a90dea3456db23ce6723711d70 |
|
BLAKE2b-256 | aeb04cc61b999757cbdfa1d89d8d7b8c0e1d345b54671fcb799f37cafc40b59d |