Skip to content

Commit

Permalink
Removed lookup of trip mode choice configs so user specifies auto mod…
Browse files Browse the repository at this point in the history
…es in parking location settings
  • Loading branch information
JoeJimFlood committed Feb 21, 2024
1 parent 5fb2b83 commit 11a3d33
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions activitysim/abm/models/trip_matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,8 @@ def write_trip_matrices(network_los):
if "parking_location" in config.setting("models"):
parking_settings = config.read_model_settings("parking_location_choice.yaml")
parking_taz_col_name = parking_settings["ALT_DEST_COL_NAME"]
auto_nest_name = parking_settings["AUTO_MODE_NEST"]

# Read trip mode choice settings to get auto modes
trip_mode_choice_settings = config.read_model_settings("trip_mode_choice.yaml")
trip_mode_choice_nest = config.get_logit_mocel_settings(trip_mode_choice_settings)
for alternative in trip_mode_choice_nest["alternatives"]:
if alternative["name"] == auto_nest_name:
auto_modes = alternative["alternatives"]
break
assert "AUTO_MODES" in parking_settings, "AUTO_MODES must be specified in parking location settings to properly adjust trip tables for assignment"
auto_modes = parking_settings["AUTO_MODES"]

if parking_taz_col_name in trips_df:

Expand Down

0 comments on commit 11a3d33

Please sign in to comment.