Skip to content

Commit

Permalink
Merge pull request #240 from SANDAG/fix_transit_walk
Browse files Browse the repository at this point in the history
Fix MAZ-Stop walk times
  • Loading branch information
bhargavasana authored Nov 7, 2024
2 parents 8839591 + 778e851 commit 1acb03f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/asim/scripts/resident/2zoneSkim_params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ mmms:
mmms_link_len: "Shape_Leng"
max_maz_maz_walk_dist_feet: 15840
max_maz_maz_bike_dist_feet: 26400
max_maz_local_bus_stop_walk_dist_feet: 5280 # 1 mile
max_maz_premium_transit_stop_walk_dist_feet: 6336 # 1.2 miles
max_maz_local_bus_stop_walk_dist_feet: 23760 # 4.5 miles (allow microtransit)
max_maz_premium_transit_stop_walk_dist_feet: 23760 # 4.5 miles (allow microtransit)
walk_speed_mph: 3.0
drive_speed_mph: 25.0
maz_maz_walk_output: "maz_maz_walk.csv"
Expand Down
8 changes: 1 addition & 7 deletions src/asim/scripts/scenarioManagement/scenManagement.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,4 @@
doc['FLEET_YEAR'] = int(scenYear)
doc['CONSTANTS']['scenarioYear'] = int(scenYear)
doc['CONSTANTS']['CHARGERS_PER_CAP'] = int(paramByYear.loc[paramByYear.year==scenYearWithSuffix, 'ev.chargers'].values[0]) / population
util.write_yaml(_join(configs_dir, 'resident', 'vehicle_type_choice.yaml'), doc)

sandag_abm_prop = util.load_properties(sandag_abm_prop_dir)
doc = util.open_yaml(_join(scripts_dir, 'resident', '2zoneSkim_params.yaml'))
doc['mmms']['max_maz_local_bus_stop_walk_dist_feet'] = float(sandag_abm_prop['microtransit.transit.connector.max.length'][0]) * 5280 # converting mile to feet
doc['mmms']['max_maz_premium_transit_stop_walk_dist_feet'] = float(sandag_abm_prop['microtransit.transit.connector.max.length'][1]) * 5280 # converting mile to feet
util.write_yaml(_join(scripts_dir, 'resident', '2zoneSkim_params.yaml'), doc)
util.write_yaml(_join(configs_dir, 'resident', 'vehicle_type_choice.yaml'), doc)
2 changes: 0 additions & 2 deletions src/main/resources/sandag_abm.properties
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ htm.input.file = inputs_sandag_HTM_${year}.xlsx
transponder.destinations = 4027,2563,2258
#traffic.sla_limit = 3
#
## maximum length of transit connectors in miles. The first value is for Local and the second is for PRM transit modes
microtransit.transit.connector.max.length = 4.5,4.5
walk.transit.connector.max.length = 0.85,1.2
pnr.transit.connector.max.length = 10,10
knr.transit.connector.max.length = 5,5
Expand Down

0 comments on commit 1acb03f

Please sign in to comment.