Skip to content

55 migrate vmt annual adjustment#57

Open
szebar01 wants to merge 20 commits into
developfrom
55-migrate-VMT-annual-adjustment
Open

55 migrate vmt annual adjustment#57
szebar01 wants to merge 20 commits into
developfrom
55-migrate-VMT-annual-adjustment

Conversation

@szebar01

Copy link
Copy Markdown

createMOVESinputfile.py:

  • Added HPMSVtypeYear tab using the logic for annual adjustment of daily VMTs from assemble_MOVES_input_xlsx.py in the Air_quality_conformity repo
  • Removed RampFraction tab
  • Merged link data with county using zone17_county_crosswalk.csv - can now output IM/nonIM Excel workbooks by county
  • Organized code into functions for each tab and a master loop at the end
  • Template IDs are now defined as globals in MOVES_constants.py rather than being derived from the data (avoids the pitfall of an ID combination being missed because some value does not exist in the data)
  • Refactored the reshaping and sourceType mapping code (now in agg_links()) for better readability, plus other small edits

batch_file.yaml:

  • Added "exportAs" parameter which specifies whether to create just IM/nonIM files or IM/nonIM by county
  • Added "year" parameter to correspond with scenario_code - mainly for leap year check

MOVES_constants.py: Defined several globals used by the createMOVESinputfile.py script

createMOVESinputfile_QC.py: Checks for (1) equality between comparable workbooks and (2) that county VMT/VHT correctly sum to the aggregate VMT/VHT

tk-oleary and others added 20 commits September 26, 2025 11:04
…nteractive prompt and/or importable function
…t_full.bat to call it at the end of transit assignment. additional functionality includes outputting a transit equivalent to "punch_link.csv" in transit_asmt/report,
… files. Compared results to previous framework and everything matches.
…nty crosswalk into linkdata and organizes the code into functions and a main loop over county and IM/non-IM. Also cleans up some code chunks while retaining the same logic.
…Added a quality check script to ensure everything works as before. Added MOVES_constants.py to define commonly used variables (road types, vehicle types, etc.)
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.

3 participants