Skip to content

How to install bayarea_urbansim

Sam Maurer edited this page May 27, 2016 · 17 revisions

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 called git-directories.pth with the following lines of text: /path/to/urbansim
    /path/to/urbansim_defaults
    /path/to/bayarea_urbansim
    Save the file into anaconda's site-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 of bayarea_urbansim and of urbansim_defaults:
    cd path/to/bayarea_urbansim
    git checkout ual-development
    cd ../urbansim_defaults
    git checkout arb

  • Try running Simulation.py from bayarea_urbansim. It it doesn't crash, then everything is set up correctly

  • run.py is the MTC model, and Simulation.py is the UAL development model