-
Notifications
You must be signed in to change notification settings - Fork 3
How to install bayarea_urbansim
The installation instructions in README.md
seem to leave out some steps.
Here's what I've done to set up bayarea_urbansim
on a new machine.
-
Install the Anaconda python distribution
-
Install udst/orca, the orchestration manager for simulations:
conda install --channel synthicity orca
-
Install udst/pandana for network aggregation:
conda install --channel synthicity pandana
-
Clone the udst/urbansim repo and run the setup script:
cd path/to/parent/directory
git clone https://github.com/udst/urbansim.git
cd urbansim
python setup.py develop
-
Clone the development repos (ual/urbansim_defaults and ual/bayarea_urbansim):
cd path/to/parent/directory
git clone https://github.com/ual/urbansim_defaults.git
git clone https://github.com/ual/bayarea_urbansim.git
-
Add the cloned repos to your python path, in order to be able to import them by name
E.g., create a file calledgit-directories.pth
with the following lines of text:/path/to/urbansim
/path/to/urbansim_defaults
/path/to/bayarea_urbansim
Save the file into anaconda'ssite-packages
folder, which might be in one of these locations:
/Users/username/anaconda/lib/python2.7/site-packages/
(OS X)
/home/username/anaconda2/lib/python2.7/site-packages/
(Linux)
C:\Users\Username\Anaconda2\Lib\site-packages
(Windows) -
Add these files into bayarea_urbansim's data directory:
2015_06_01_bayarea_v3.h5
2015_06_01_osm_bayarea4326.h5
2015_08_13_zoning_parcels.csv
2015_08_13_parcels_geography.csv -
Switch to the
ual-development
branch ofbayarea_urbansim
and ofurbansim_defaults
:
cd path/to/bayarea_urbansim
git checkout ual-development
cd ../urbansim_defaults
git checkout arb
-
Try running
Simulation.py
frombayarea_urbansim
. It it doesn't crash, then everything is set up correctly -
run.py
is the MTC model, andSimulation.py
is the UAL development model
Urban Analytics Lab | 401A Wurster Hall | Berkeley, CA