-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
[Below is work in progress]
First, install Anaconda python and make sure you have Git installed if you don't already
Enter the following sequence of conda commands from terminal:
conda config --add channels udstconda config --add channels conda-forgeconda create --name urbansim python=3.6- linux and osx:
source activate urbansim; windows:activate urbansim conda install urbansimconda install pandanaconda install altair==1.2.0- if installing on Windows:
conda install hdf5
In order to run the jupyter notebooks enter the following sequence of conda commands:
conda install seabornconda install bokehconda install datashaderconda install nb_condaconda install geopandasconda install shapelyconda install matplotlib
Note the urbansim conda environment above- this will be an isolated conda environment with the dependencies for your model. In all the instructions below, ensure that the urbansim environment is activated (linux and osx: source activate urbansim; windows: activate urbansim).
it is suggested you clone the repos below into a projects folder or a location where you usually store repos from GitHub.
git clone https://github.com/udst/choicemodelscd choicemodelspython setup.py developcd ..
git clone https://github.com/udst/urbansim_templates -b ej-testcd urbansim_templatespython setup.py developcd ..
git clone https://github.com/udst/variable_generatorscd variable_generatorspython setup.py developcd ..
git clone https://github.com/udst/developercd developerpython setup.py developcd ..
git clone https://github.com/urbansim/urbansim_parcels -b ej-testcd urbansim_parcelspython setup.py developcd ..
git clone https://github.com/ual/bayareacd bayareapython setup.py develop
Download the latest model_data.h5, and place in the bayarea/bayarea/data directory. (See the latest model_data.h5 file in the shared /data/base directory on Drive)
From the bayarea/bayarea directory, start a jupyter notebook session in a terminal by running jupyter notebook
In the notebook, check that the urbansim env kernel is used
- Kernel -> Change kernel -> urbansim
If the kernel cannot be found in the kernel list, you can add it manually by first activating your urbansim env then typing in terminal: python -m ipykernel install --name urbansim
- From a terminal in the 'bayarea/bayarea' directory, first activate your urbansim env then run
python simulate.py -y 2020 - Run all the notebooks and see if any error messages pop up