-
Notifications
You must be signed in to change notification settings - Fork 4
Quick Start Guide
Nick Ferguson edited this page Apr 11, 2024
·
18 revisions
Requires Anaconda, git, and R (with all necessary R packages) to be installed on the machine.
- With Anaconda Prompt in the target directory on a modeling server's local drive:
a) clone this repo and move to the development branch.b) if a TBM conda environment already exists, reinstall local packages to use the latest source code.git clone https://github.com/CMAP-REPOS/cmap_trip-based_model.git cd cmap_trip-based_model git checkout develop
c) copy data from a previous model run. (arguments for recent_conformity and scenario should match the previous model run)conda activate CMAP-TRIP2 pip install -e src\Mode-Dest-TOD pip install -e src\Mode-Dest-TOD\sharrow
powershell -file copy_scenario_data.ps1 -recent_conformity c23q4 -scenario 100
- Update the project name in Emme > File > Project Settings and rename the .emp and .emp.prj files to match.
- Update "Database\batch_file.yaml"
- Update growth rate in "prep_macros\distribute.trucks" and "prep_macros\distribute.poes"
- Update file location in "prep_macros\build_tod_transit" and "prep_macros\initialize.scenarios"
- Update
visitor_trips_growth_factor
anddowntown_surcharge_rates
forTNC
andTNC_pooled
in "Database\cmap_trip_config.yaml" - Make a copy of the previous model run. Copy "useful_macros\input_data_mac.py" from the model run being set up to "useful_macros\" in the copy. Run the script in the previous scenario using Emme Python. Copy the resulting preload congested travel time files (those with preload or timau in the name) from "Database\default_base_year" in the copy to the same location in the model run being set up.
- Run "trip_gen.bat" module 3
- Run "run_cleanup_script.bat"
- Run the following macros, in order, using Emme Prompt:
"prep_macros\build_tod_transit"
"useful_macros\delete.initial.batchin.scenarios"
"prep_macros\initialize.scenarios" - Run "Submit_Full_Regional_Model_SOLA.bat mode 2