Translation to Python: useful_macros and transit boarding summary#24
Open
tk-oleary wants to merge 13 commits into
Open
Translation to Python: useful_macros and transit boarding summary#24tk-oleary wants to merge 13 commits into
tk-oleary wants to merge 13 commits into
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.
Contributor
|
delete_matrices.py range option not working properly |
c26q2 updates
…m/CMAP-REPOS/cmap_trip-based_model into useful_macros-translate-to-python
summarize_transit_boardings.py is called in run_transit_assignment.bat; updating code so the python script runs instead of looking for the macro
not ready to implement delete_matrices translation because used in other macros; changed delete_initial... to delete scenarios ending 0-9 not 1-9
Contributor
|
Note: this originally had delete_matrices.py, a translated script of delete.matrices and delete_matrix_named matrices; but these are called in distribute.trucks and distribute.poes so for now not incorporating delete_matrices.py |
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