Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
9bcf8ff
translates delete.initial.batchin.scenarios to python
tk-oleary Sep 26, 2025
0ae4ace
translated delete.scenarios and delete.matrices to python 3, adding i…
tk-oleary Sep 26, 2025
3ab7094
remove emme macro versions of delete_matrices and delete_scenarios
tk-oleary Sep 26, 2025
e7bf2b4
translates summarize_transit_boardings.mac to python, and edits submi…
tk-oleary Sep 26, 2025
c089942
cleanup edits
tk-oleary Sep 29, 2025
214a6d3
final error fixes
tk-oleary Sep 29, 2025
e0483bf
Translates delete.initial.batchin.scenarios to python, and deletes th…
tk-oleary Oct 9, 2025
e90bd8e
Translates delete_matrix_named and delete.matrices to a single python…
tk-oleary Oct 9, 2025
e890aac
Translates delete.scenarios to python. delete_scenarios() function ca…
tk-oleary Oct 9, 2025
c59ab65
Translates summarize_transit_boardings.mac into python. Reads batch_f…
tk-oleary Oct 9, 2025
0ff9119
Adds summarize_transit_boardings.py to Submit_Full at the end of tran…
tk-oleary Oct 9, 2025
ea34a7d
fixed typo in delete_matrices.py
tk-oleary Nov 12, 2025
f71b946
hotfix correcting typo that caused range input to malfunction
tk-oleary Nov 19, 2025
e52b318
Merge pull request #52 from CMAP-REPOS/develop
nrferguson Apr 30, 2026
78074d7
Merge branch 'useful_macros-translate-to-python' of https://github.co…
tk-oleary May 21, 2026
2868013
Merge branch 'develop' of https://github.com/CMAP-REPOS/cmap_trip-bas…
tk-oleary May 21, 2026
dc23731
Revert "Merge branch 'develop' of https://github.com/CMAP-REPOS/cmap_…
tk-oleary May 21, 2026
b000935
Merge remote-tracking branch 'origin/main' into useful_macros-transla…
kcazzatoCMAP Jun 1, 2026
5c5c746
add update to .bat
kcazzatoCMAP Jun 2, 2026
a237492
final reconciliation
kcazzatoCMAP Jun 2, 2026
75cfb7b
Merge branch 'develop' into useful_macros-translate-to-python
kcazzatoCMAP Jun 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Ignore compiled Python.
**/__pycache__

# Ignore files generated by installing Python eggs.
src/Mode-Dest-TOD/cmap_modedest.egg-info
src/Mode-Dest-TOD/sharrow/sharrow.egg-info

# Ignore large Emme project files.
Database/emmemat
Database/emmebank
Expand All @@ -11,6 +15,7 @@ Database/tg/fortran/HH_IN.TXT
Database/tg/fortran/POPSYN_HH.CSV
Database/tg/fortran/GQ_IN.TXT
Database/tg/fortran/ATTR_IN.TXT
Database/tg/fortran/airport_sz.csv
Database/tg/fortran/SCHOOL_IN.CSV
Database/tg/fortran/wfhmodule/indusmix.csv

Expand All @@ -34,10 +39,6 @@ Database/tg/fortran/wfhmodule/synthetic_*.zip
Database/TG_HHENUM_OUTPUT.TXT
Database/tg/fortran/HH_WFH_STATUS.CSV
Database/tg/fortran/SIMULATED_HHVEH.TXT
Database/tg/fortran/households_selected_noWFH_enumeration_count.csv
Database/tg/fortran/households_selected_WFH_enumeration_count.csv
Database/tg/fortran/missing_hhtype.csv
Database/tg/fortran/trip_generation_model_log.txt

# Ignore files generated by prep macros.
Database/*_DISTR.TXT
Expand Down
163 changes: 117 additions & 46 deletions Database/Submit_Full_Regional_Model_SOLA.bat

Large diffs are not rendered by default.

37 changes: 0 additions & 37 deletions Database/Telework.yaml

This file was deleted.

14 changes: 9 additions & 5 deletions Database/batch_file.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Project details
model_version: c26q2
model_version: c25q2
scenario_code: 100
# ---------------- Work from home module inputs (trip generation)
validationfiles: N
usualwfhpct: 0.0510
tc14pct: 0.1031
# ---------------- Select link analysis files: provide file name (ex: RSP32_links.txt [stored in Database\Select_Link\]) or use None
# ---------------- Can submit up to 5, comma-separated, any order, no spaces, (ex: None,test4.txt,test1.txt,None,None)
selectLinkFile: None,None,None,None,None
# ---------------- Transaction file path: include the path to the transaction files that will build the scenario networks in double quotes (spaces OK),
# ---------------- point to directory above highway\ and transit\, no ending backslash (ex: "M:\catslib\modelprod\c24q2" or "M:/catslib/modelprod/24q2")
transactionFilePath: "M:/proj1/nrf/Conformity/c25q4"
transactionFilePath: "M:/proj1/nrf/Conformity/c25q2"
# ---------------- Run Transit Assignment at the end of the model run? Default is False.
runTransitAsmt: False
# ---------------- Transit select line analysis file: provide file name (ex: rsp57_line.txt [stored in Database\Select_Line\]) or use None
Expand All @@ -17,6 +21,6 @@ util_files: False
UrbanSim_file: False
# ---------------- Is this an RSP evaluation run? Default is False.
RSP: False
# ---------------- PUMA version used in Trip Generation. 2010 is the current option.
pumaVersion: 2010

# ---------------- sourceCode will force CMAP-TRIP2 to use the source code in this model setup if set to True. Default is True.
# ---------------- Set to False if this is the second of two simultaneous runs being submitted.
sourceCode: True
11 changes: 7 additions & 4 deletions Database/build_scenario_networks.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ for /f "eol=# skip=1 tokens=2 delims=:" %%z in (batch_file.yaml) do (set ver=%%z
:break0
for /f "eol=# skip=2 tokens=2 delims=:" %%a in (batch_file.yaml) do (set val=%%a & goto break1)
:break1
for /f "eol=# skip=8 tokens=2* delims=:" %%g in (batch_file.yaml) do (set transactFilePath1=%%g & set transactFilePath2=%%h & goto break6)
for /f "eol=# skip=12 tokens=2* delims=:" %%g in (batch_file.yaml) do (set transactFilePath1=%%g & set transactFilePath2=%%h & goto break6)
:break6

set ver=%ver:~1,5%
Expand Down Expand Up @@ -39,14 +39,17 @@ set ok=%ok:y=Y%
if not "%ok%"=="Y" (goto end)
@echo ==================================================================

rem Activate Emme Python env
call %~dp0..\Scripts\manage\env\activate_env.cmd emme

@ECHO --- Cleaning up databank ---
if exist cleanup.rpt (del cleanup.rpt)
uv run useful_macros\cleanup_for_rerun.py %val%>> cleanup.rpt
call python useful_macros\cleanup_for_rerun.py %val%>> cleanup.rpt
if exist reports (del reports)
@ECHO Cleanup complete.

@ECHO --- Creating time-of-day highway and transit networks ---
uv run prep_macros\initialize_scenarios.py
call python prep_macros\initialize_scenarios.py
if %ERRORLEVEL% GTR 0 (goto end)

@ECHO -- Checking for transit network input errors --
Expand All @@ -56,7 +59,7 @@ if exist report\build_transit.error (del report\build_transit.error /Q)

:while
if %trnscen% GTR %maxscen% (goto loopend)
uv run prep_macros\build_transit_error_check.py %trnscen%
python prep_macros\build_transit_error_check.py %trnscen%
if exist report\build_transit.error (goto badnet)
set /A trnscen=%trnscen%+2
goto while
Expand Down
1 change: 1 addition & 0 deletions Database/choice_model_params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ HBWL:
intrazonal : 0.02173059479852062
log_attraction : 1.0
metra_longtrip : 5.625
ovtt_dist : -0.076
ovtt_dist : -0.07639147912439262
samp_af : 1.0
totaltime : -0.014712168298471244
Expand Down
Loading