Skip to content

Commit

Permalink
Added updates to the scripts and new scripts to generate performance …
Browse files Browse the repository at this point in the history
…metrics. #9
  • Loading branch information
goreaditya committed Jun 29, 2024
1 parent 0beae50 commit d16eb67
Show file tree
Hide file tree
Showing 3 changed files with 974 additions and 2 deletions.
2 changes: 1 addition & 1 deletion emme_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
coord_unit_length = 0.0001894 # network links measured in feet, converted to miles (1/5280)
main_log_file = 'seacast_log.txt'

link_extra_attributes = ['@facilitytype', '@countyid', '@countid', '@corridorid', '@is_managed','@bkfac','@upslp', '@toll1', '@toll2', '@toll3', '@trkc1', '@trkc2', '@trkc3', '@fgts', '@ttf', '@subarea_flag']
link_extra_attributes = ['@facilitytype', '@countyid', '@countid', '@corridorid', '@is_managed','@bkfac','@upslp', '@toll1', '@toll2', '@toll3', '@trkc1', '@trkc2', '@trkc3', '@fgts', '@ttf', '@subarea_flag', '@concurrency', '@truck_route']
node_extra_attributes = ['@lr_walk','@hdwfr','@wait','@invt']
transit_line_extra_attributes = ['@transittype']

Expand Down
8 changes: 7 additions & 1 deletion scripts/summarize/standard/network_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,13 @@ def summarize_network(df, writer):
_df.to_excel(writer, sheet_name=metric+' by FC')
_df.to_csv(r'outputs/network/' + metric.lower() +'_facility.csv', index=False)

# Totals by user classification
# Totals by functional classification and subarea
for metric in ['VMT','VHT','delay']:
_df = pd.pivot_table(df, values=metric, index=['tod','period', '@subarea_flag', '@concurrency', '@truck_route'],columns='facility_type', aggfunc='sum').reset_index()
_df = sort_df(df=_df, sort_list=tods , sort_column='tod')
_df = _df.reset_index(drop=True)
_df.to_excel(writer, sheet_name=metric+' by FC Subarea')
_df.to_csv(r'outputs/network/' + metric.lower() +'_subarea_facility.csv', index=False)

# Update uc_list based on inclusion of TNC and AVs
new_uc_list = []
Expand Down
Loading

0 comments on commit d16eb67

Please sign in to comment.