From f1bdd88ecb95794576445e238579e89c717db565 Mon Sep 17 00:00:00 2001 From: JoeJimFlood Date: Thu, 28 Mar 2024 09:52:12 -0700 Subject: [PATCH] Changed settings call to old format --- activitysim/abm/models/vehicle_type_choice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activitysim/abm/models/vehicle_type_choice.py b/activitysim/abm/models/vehicle_type_choice.py index de723602f..faef05e65 100644 --- a/activitysim/abm/models/vehicle_type_choice.py +++ b/activitysim/abm/models/vehicle_type_choice.py @@ -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