Skip to content

Commit

Permalink
Changed settings call to old format
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeJimFlood committed Mar 28, 2024
1 parent 92bf60d commit f1bdd88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activitysim/abm/models/vehicle_type_choice.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,9 @@ def iterate_vehicle_type_choice(

# filter columns of alts and choosers
if len(model_settings.COLS_TO_INCLUDE_IN_CHOOSER_TABLE) > 0:
choosers = choosers[model_settings.COLS_TO_INCLUDE_IN_CHOOSER_TABLE]
choosers = choosers[model_settings.get("COLS_TO_INCLUDE_IN_CHOOSER_TABLE")]
if len(model_settings.COLS_TO_INCLUDE_IN_ALTS_TABLE) > 0:
alts_wide = alts_wide[model_settings.COLS_TO_INCLUDE_IN_ALTS_TABLE]
alts_wide = alts_wide[model_settings.get("COLS_TO_INCLUDE_IN_ALTS_TABLE")]

# if there were so many alts that they had to be created programmatically,
# by combining categorical variables, then the utility expressions should make
Expand Down

0 comments on commit f1bdd88

Please sign in to comment.