This code calculates the change in destination accessibility for each origin in Toronto as a result of an input list of cycling infrastructure projects.
- A list of projects -- a list of integer IDs for projects that correspond to the arterial road segments in
proj2artid
, i.e. project 0 is the 0th indexed element inproj2artid
. Alternatively projects are listed as network edges inargs['projects']
. args.pkl
-- object containing:- destination values for each DA (indexed by centroid node ID)
- graph object for full city network (G) and reachable with current infrastructure (G_curr)
- destination values for each DA (indexed by centroid node ID)
- change in destination accessibility for each origin, mapped to DAid in a csv
Test project set - 10 km city-wide budget, from seed 38 - data/new_projects.csv
python calculate_accessibility.py potentials
Example usage: python calculate_accessibility job populations