Skip to content

Commit

Permalink
Updated configs and created cmd for running travel time calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeJimFlood committed May 7, 2024
1 parent d5f0608 commit b8ed161
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/python/AMTravelTimeReporterConfigs.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
time_period: AM
time_threshold: 45
infinity: 999
outfile: walkMgrasWithin45Min_AM.csv
outfile: report\walkMgrasWithin45Min_AM.csv

transit_skim_matrices: # If set to True, replace values of zero with the number set as infinity
WALK_MIX_FIRSTWAIT__{}: False
Expand Down
19 changes: 19 additions & 0 deletions src/main/python/MDTravelTimeReporterConfigs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
time_period: MD
time_threshold: 45
infinity: 999
outfile: report\walkMgrasWithin45Min_MD.csv

transit_skim_matrices: # If set to True, replace values of zero with the number set as infinity
WALK_MIX_FIRSTWAIT__{}: False
WALK_MIX_XFERWALK__{}: False
WALK_MIX_XFERWAIT__{}: False
WALK_MIX_TOTALIVTT__{}: True

traffic_skim_matrices: # If set to True, replace values of zero with the number set as infinity
HOV3_M_DIST__{}: False
HOV3_M_TIME__{}: False
SOV_NT_L_TIME__{}: False

active_skim_files:
walk_time: maz_maz_walk.csv
bike_time: maz_maz_bike.csv
33 changes: 33 additions & 0 deletions src/main/resources/run_travel_time_calculator.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
ECHO ON

set PROJECT_DRIVE=%1
set PROJECT_DIRECTORY=%2

%PROJECT_DRIVE%
cd /d %PROJECT_DIRECTORY%

SET ANACONDA3_DIR=%CONDA_PREFIX%

SET PATH=%ANACONDA3_DIR%\Library\bin;%PATH%
SET PATH=%ANACONDA3_DIR%\Scripts;%ANACONDA3_DIR%\bin;%PATH%

:: setup paths to Python application, Conda script, etc.
SET CONDA3_ACT=%ANACONDA3_DIR%\Scripts\activate.bat

SET CONDA3_DEA=%ANACONDA3_DIR%\Scripts\deactivate.bat

SET CONDA3=%ANACONDA3_DIR%\Scripts\conda.exe

SET PYTHON3=%ANACONDA3_DIR%\envs\asim_baydag\python.exe

ECHO Activate asim_baydag....
CD /d %ANACONDA3_DIR%\Scripts
CALL %CONDA3_ACT% asim_baydag

set MKL_NUM_THREADS=1
set MKL=1

cd /d %PROJECT_DIRECTORY%

%PYTHON3% python/TravelTimeReporter.py %PROJECT_DIRECTORY% %PROJECT_DIRECTORY%/python/AMTravelTimeReporterConfigs.yaml
%PYTHON3% python/TravelTimeReporter.py %PROJECT_DIRECTORY% %PROJECT_DIRECTORY%/python/MDTravelTimeReporterConfigs.yaml

0 comments on commit b8ed161

Please sign in to comment.