Skip to content

Conversation

@tk-oleary
Copy link

@tk-oleary tk-oleary commented Oct 9, 2025

Translates the following scripts in "useful_macros" to python:
- delete.initial.batchin.scenarios --> delete_initial_batchin_scenarios.py
- delete.matrices --> delete_matrices.py
- delete_matrix_named --> delete_matrices.py
- delete.scenarios --> delete_scenarios.py
Translates the following scripts in "transit_asmt_macros" to python:
- summarize.transit.boardings.mac --> summarize_transit_boardings.py
Edits Submit_Full to run summarize_transit_boardings.py at the end of transit assignment

…e old macro. Reads batch_file.yaml instead of requiring 3-digit scenario year. Informs the user through print statements if a scenario does not exist (but otherwise agnostic to non-existent scenarios).
… script. The "delete_matrix()" function can be imported by other python scripts, or the script can run interactively in a terminal. Takes one of the following as input, and deletes if exists: (a) a single matrix name (e.g., "mf14", or "mo10"); (b) a range of matrices of a single type, separated by a hyphen (e.g., "mf10-mf25", or "ms1-ms9"); (c) a list of individual matrices of any type (e.g., "mf10, mo5, ms3").
…n be imported by other scripts or run independently in the terminal. Takes input and deletes scenario if it exists. One of three input types: (a) single scenario ID (e.g., "1" or "30022"); (b) a range of scenarios, separated by a hyphen (e.g., "1-10" or "30001-30028"); (c) a collection of individual scenarios, separated by commas (e.g., "1, 321, 30021")
…ile.yaml instead of requiring 3-digit scenario code as input. Along with "Boardings_summary.csv," which has daily boarding info by mode, it also creates an additional output csv in the report folder, "transit_segments_punch.csv," that is effectively a transit equivalent to "punchlink.csv," containing transit segment info for boardings, volumes, PMT, and PHT.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants