Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transit 2050+ Project Performance Assessment #67

Open
wants to merge 6 commits into
base: transit_2050_tm1518
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions model-files/RunCoreSummaries.bat
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,22 @@ if %NEED_SUMMARY% GTR 0 (
echo.

:: convert the summaries to tde for just this dir
for %%X in ("%TARGET_DIR%\core_summaries\*.rdata") DO (
if not exist "%TARGET_DIR%\core_summaries\%%~nX.tde" (
python "%CODE_DIR%\RdataToTableauExtract.py" "%TARGET_DIR%\core_summaries" "%TARGET_DIR%\core_summaries" %%~nxX
if %ERRORLEVEL% GTR 0 goto done
@REM for %%X in ("%TARGET_DIR%\core_summaries\*.rdata") DO (
@REM if not exist "%TARGET_DIR%\core_summaries\%%~nX.tde" (
@REM python "%CODE_DIR%\RdataToTableauExtract.py" "%TARGET_DIR%\core_summaries" "%TARGET_DIR%\core_summaries" %%~nxX
@REM if %ERRORLEVEL% GTR 0 goto done

echo.
)
)
@REM echo.
@REM )
@REM )

:: convert the avgload5period.csv
if not exist "%TARGET_DIR%\core_summaries\avgload5period.tde" (
python "%CODE_DIR%\csvToTableauExtract.py" "%TARGET_DIR%\hwy\iter%ITER%" "%TARGET_DIR%\core_summaries" avgload5period.csv
if %ERRORLEVEL% GTR 0 goto done
@REM if not exist "%TARGET_DIR%\core_summaries\avgload5period.tde" (
@REM python "%CODE_DIR%\csvToTableauExtract.py" "%TARGET_DIR%\hwy\iter%ITER%" "%TARGET_DIR%\core_summaries" avgload5period.csv
@REM if %ERRORLEVEL% GTR 0 goto done

echo.
)
@REM echo.
@REM )

:: create trn\trnline.csv
if not exist "%TARGET_DIR%\trn\trnline.csv" (
Expand All @@ -74,18 +74,18 @@ if not exist "%TARGET_DIR%\trn\trnline.csv" (
)

:: convert the transit files
if not exist "%TARGET_DIR%\core_summaries\trnline.tde" (
FOR %%H in (EA AM MD PM EV) DO (
FOR %%J in (loc lrf exp hvy com) DO (
rem walk -> transit -> walk
python "%CODE_DIR%\csvToTableauExtract.py" --header "name,mode,owner,frequency,line time,line dist,total boardings,passenger miles,passenger hours,path id" --output trnline.tde --join "%CODE_DIR%\reference-transit-modes.csv" --append "%TARGET_DIR%\trn\TransitAssignment.iter%ITER%" "%TARGET_DIR%\core_summaries" trnline%%H_wlk_%%J_wlk.csv
rem drive -> transit -> walk
python "%CODE_DIR%\csvToTableauExtract.py" --header "name,mode,owner,frequency,line time,line dist,total boardings,passenger miles,passenger hours,path id" --output trnline.tde --join "%CODE_DIR%\reference-transit-modes.csv" --append "%TARGET_DIR%\trn\TransitAssignment.iter%ITER%" "%TARGET_DIR%\core_summaries" trnline%%H_drv_%%J_wlk.csv
rem walk -> transit -> drive
python "%CODE_DIR%\csvToTableauExtract.py" --header "name,mode,owner,frequency,line time,line dist,total boardings,passenger miles,passenger hours,path id" --output trnline.tde --join "%CODE_DIR%\reference-transit-modes.csv" --append "%TARGET_DIR%\trn\TransitAssignment.iter%ITER%" "%TARGET_DIR%\core_summaries" trnline%%H_wlk_%%J_drv.csv
)
)
)
@REM if not exist "%TARGET_DIR%\core_summaries\trnline.tde" (
@REM FOR %%H in (EA AM MD PM EV) DO (
@REM FOR %%J in (loc lrf exp hvy com) DO (
@REM rem walk -> transit -> walk
@REM python "%CODE_DIR%\csvToTableauExtract.py" --header "name,mode,owner,frequency,line time,line dist,total boardings,passenger miles,passenger hours,path id" --output trnline.tde --join "%CODE_DIR%\reference-transit-modes.csv" --append "%TARGET_DIR%\trn\TransitAssignment.iter%ITER%" "%TARGET_DIR%\core_summaries" trnline%%H_wlk_%%J_wlk.csv
@REM rem drive -> transit -> walk
@REM python "%CODE_DIR%\csvToTableauExtract.py" --header "name,mode,owner,frequency,line time,line dist,total boardings,passenger miles,passenger hours,path id" --output trnline.tde --join "%CODE_DIR%\reference-transit-modes.csv" --append "%TARGET_DIR%\trn\TransitAssignment.iter%ITER%" "%TARGET_DIR%\core_summaries" trnline%%H_drv_%%J_wlk.csv
@REM rem walk -> transit -> drive
@REM python "%CODE_DIR%\csvToTableauExtract.py" --header "name,mode,owner,frequency,line time,line dist,total boardings,passenger miles,passenger hours,path id" --output trnline.tde --join "%CODE_DIR%\reference-transit-modes.csv" --append "%TARGET_DIR%\trn\TransitAssignment.iter%ITER%" "%TARGET_DIR%\core_summaries" trnline%%H_wlk_%%J_drv.csv
@REM )
@REM )
@REM )

endlocal

Expand Down
22 changes: 17 additions & 5 deletions model-files/RunModel.bat
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ call CTRAMP\runtime\SetPath.bat
Cluster "%COMMPATH%\CTRAMP" 1-48 Starthide Exit

:: Set the IP address of the host machine which sends tasks to the client machines
set HOST_IP_ADDRESS=10.6.0.4
if %computername%==MODEL2-A set HOST_IP_ADDRESS=192.168.1.206
if %computername%==MODEL2-B set HOST_IP_ADDRESS=192.168.1.207
if %computername%==MODEL2-C set HOST_IP_ADDRESS=192.168.1.208
Expand Down Expand Up @@ -205,7 +206,7 @@ runtpp CTRAMP\scripts\skims\NonMotorizedSkims.job
if ERRORLEVEL 2 goto done

:: Step 4.5: Build initial transit files
set PYTHONPATH=%USERPROFILE%\Documents\GitHub\NetworkWrangler;%USERPROFILE%\Documents\GitHub\NetworkWrangler\_static
::set PYTHONPATH=%USERPROFILE%\Documents\GitHub\NetworkWrangler;%USERPROFILE%\Documents\GitHub\NetworkWrangler\_static
python CTRAMP\scripts\skims\transitDwellAccess.py NORMAL NoExtraDelay Simple complexDwell %COMPLEXMODES_DWELL% complexAccess %COMPLEXMODES_ACCESS%
if ERRORLEVEL 2 goto done

Expand All @@ -216,7 +217,7 @@ if ERRORLEVEL 2 goto done
::
:: ------------------------------------------------------------------------------------------------------

: iter0
:iter0

:: Set the iteration parameters
set ITER=0
Expand All @@ -234,13 +235,16 @@ set PREV_WGT=0.00
call CTRAMP\RunIteration.bat
if ERRORLEVEL 2 goto done

:: called again due to python2 not getting activated in conda env...
call CTRAMP\runtime\SetPath.bat

:: ------------------------------------------------------------------------------------------------------
::
:: Step 7: Prepare for iteration 1 and execute RunIteration batch file
::
:: ------------------------------------------------------------------------------------------------------

: iter1
:iter1

:: Set the iteration parameters
set ITER=1
Expand All @@ -258,13 +262,16 @@ if ERRORLEVEL 1 goto done
call CTRAMP\RunIteration.bat
if ERRORLEVEL 2 goto done

:: called again due to python2 not getting activated in conda env...
call CTRAMP\runtime\SetPath.bat

:: ------------------------------------------------------------------------------------------------------
::
:: Step 8: Prepare for iteration 2 and execute RunIteration batch file
::
:: ------------------------------------------------------------------------------------------------------

: iter2
:iter2

:: Set the iteration parameters
set ITER=2
Expand All @@ -282,6 +289,8 @@ if ERRORLEVEL 1 goto done
call CTRAMP\RunIteration.bat
if ERRORLEVEL 2 goto done

:: called again due to python2 not getting activated in conda env...
call CTRAMP\runtime\SetPath.bat

:: ------------------------------------------------------------------------------------------------------
::
Expand All @@ -307,6 +316,9 @@ if ERRORLEVEL 1 goto done
call CTRAMP\RunIteration.bat
if ERRORLEVEL 2 goto done

:: called again due to python2 not getting activated in conda env...
call CTRAMP\runtime\SetPath.bat

:: Shut down java
C:\Windows\SysWOW64\taskkill /f /im "java.exe"

Expand Down Expand Up @@ -374,7 +386,7 @@ if ERRORLEVEL 2 goto done

:: Extract key files
call extractkeyfiles
c:\windows\system32\Robocopy.exe /E extractor "%M_DIR%\OUTPUT"
@REM c:\windows\system32\Robocopy.exe /E extractor "%M_DIR%\OUTPUT"

: cleanup

Expand Down
Loading