Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(eir) add templates to resources #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions python/rp_2021_EIR/settings_eir.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import urllib
import pandas as pd
import yaml
from datetime import datetime

# create dictionary of ABM SQL database scenario ids and the corresponding
# scenario label they map to within the Performance Measure template
Expand Down Expand Up @@ -36,15 +37,16 @@

# set path to write Performance Measure workbook
# example format: C:/Users/gsc/Desktop/PerformanceMeasures.xlsx
templateWritePath = #r"T:\projects\sr14\OWP\2021rp_followup_ruc\analysis\ABM-Reporting-master\2021RP_final_EIR_data_summary_121922"
now = datetime.now()
templateWritePath = f"python/rp_final_EIR/2021RP_final_EIR_data_summary_{now.strftime('%Y%m%d-%H%M')}"

# set path to Performance Measure workbook Template
template_path = #r"T:\projects\sr14\OWP\2021rp_followup_ruc\analysis\ABM-Reporting-master\resources\rp_2021\2021RP_final_EIR_data.xlsx"
template_path = "resources/rp_2021/2021RP_final_EIR_data.xlsx"

# list of performance measure outputs
# and locations to write into Excel template
# Measure, Metric, sheet, row
template_locations_path = #r"T:\projects\sr14\OWP\2021rp_followup_ruc\analysis\ABM-Reporting-master\resources\rp_2021\2021RP_final_EIR_template_location.csv"
template_locations_path = "resources/rp_2021/2021RP_final_EIR_template_location.csv"

# get SQL server attributes from local file
try:
Expand Down
Binary file added resources/rp_2021/2021RP_final_EIR_data.xlsx
Binary file not shown.
38 changes: 38 additions & 0 deletions resources/rp_2021/2021RP_final_EIR_template_location.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
measureKey,metricKey,sheet,row
Total daily transit - Total Commuter Rail,vmt,Stats 2016 Build and No Build,3
Total daily transit - Light Rail,vmt,Stats 2016 Build and No Build,4
Total daily transit - Rapid,vmt,Stats 2016 Build and No Build,5
Total daily transit - Bus,vmt,Stats 2016 Build and No Build,6
Lane Miles of Roadways,Freeway Total,Stats 2016 Build and No Build,7
Lane Miles of Roadways,Freeway General Purpose,Stats 2016 Build and No Build,8
Lane Miles of Roadways,Freeway Carpool/ ML,Stats 2016 Build and No Build,9
Lane Miles of Roadways,Tollway,Stats 2016 Build and No Build,10
Lane Miles of Roadways,State Highway,Stats 2016 Build and No Build,11
Lane Miles of Roadways,Regional Arterial,Stats 2016 Build and No Build,12
SM-1 - All Trips All Day All Simulated Models,person trips - Auto,Stats 2016 Build and No Build,19
SM-1 - All Trips All Day All Simulated Models,person trips - Carpool,Stats 2016 Build and No Build,20
SM-1 - All Trips All Day All Simulated Models,person trips - Transit,Stats 2016 Build and No Build,21
SM-1 - All Trips All Day All Simulated Models,person trips - Bike,Stats 2016 Build and No Build,22
SM-1 - All Trips All Day All Simulated Models,person trips - Walk,Stats 2016 Build and No Build,23
SM-1 - All Trips All Day All Simulated Models,mode share - Auto,Stats 2016 Build and No Build,24
SM-1 - All Trips All Day All Simulated Models,mode share - Transit,Stats 2016 Build and No Build,25
SM-1 - All Trips All Day All Simulated Models,mode share - Bike,Stats 2016 Build and No Build,26
SM-1 - All Trips All Day All Simulated Models,mode share - Walk,Stats 2016 Build and No Build,27
SM-1 - All Trips All Simulated Models,Average trip length - Auto,Stats 2016 Build and No Build,28
SM-1 - All Trips All Simulated Models,Average trip length - Transit,Stats 2016 Build and No Build,29
SM-1 - All Trips All Simulated Models,Average trip length - Bike,Stats 2016 Build and No Build,30
SM-1 - All Trips All Simulated Models,Average trip length - Walk,Stats 2016 Build and No Build,31
SM-1 - All Trips All Simulated Models,Average travel time - Auto,Stats 2016 Build and No Build,32
SM-1 - All Trips All Simulated Models,Average travel time - Transit,Stats 2016 Build and No Build,33
SM-1 - All Trips All Simulated Models,Average travel time - Bike,Stats 2016 Build and No Build,34
SM-1 - All Trips All Simulated Models,Average travel time - Walk,Stats 2016 Build and No Build,35
Population Region Wide,Total Population,Stats 2016 Build and No Build,36
Employment Region Wide,Total Employment,Stats 2016 Build and No Build,37
M-4,VMT,Stats 2016 Build and No Build,38
All Residents,San Diego County,Stats 2016 Build and No Build,39
All Residents,Activity Assigned to Home Location,Stats 2016 Build and No Build,40
Workers Only,Activity Assigned to Workplace Location,Stats 2016 Build and No Build,41
VMT per service population,region wide,Stats 2016 Build and No Build,42
Population within TPAs,Total Population,Stats 2016 Build and No Build,43
Employment within TPAs,Total Employment,Stats 2016 Build and No Build,44
Total Service Population,within TPA,Stats 2016 Build and No Build,45