diff --git a/python/rp_2021_EIR/settings_eir.py b/python/rp_2021_EIR/settings_eir.py index d9aa586..42e6518 100644 --- a/python/rp_2021_EIR/settings_eir.py +++ b/python/rp_2021_EIR/settings_eir.py @@ -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 @@ -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: diff --git a/resources/rp_2021/2021RP_final_EIR_data.xlsx b/resources/rp_2021/2021RP_final_EIR_data.xlsx new file mode 100644 index 0000000..0d8c7e8 Binary files /dev/null and b/resources/rp_2021/2021RP_final_EIR_data.xlsx differ diff --git a/resources/rp_2021/2021RP_final_EIR_template_location.csv b/resources/rp_2021/2021RP_final_EIR_template_location.csv new file mode 100644 index 0000000..8beb5f3 --- /dev/null +++ b/resources/rp_2021/2021RP_final_EIR_template_location.csv @@ -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