Translation to Python: useful_macros and transit boarding summary#24
Draft
Translation to Python: useful_macros and transit boarding summary#24
Conversation
…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.
|
delete_matrices.py range option not working properly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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