From a9dd3831e23e3c58e7ba1c86c7866074540933a9 Mon Sep 17 00:00:00 2001 From: Sijia Wang Date: Wed, 31 Jan 2024 21:36:09 -0500 Subject: [PATCH] move comment --- activitysim/abm/models/vehicle_type_choice.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/activitysim/abm/models/vehicle_type_choice.py b/activitysim/abm/models/vehicle_type_choice.py index 5192d23d8..d29aef7e5 100644 --- a/activitysim/abm/models/vehicle_type_choice.py +++ b/activitysim/abm/models/vehicle_type_choice.py @@ -230,10 +230,9 @@ def construct_model_alternatives( ), f"missing vehicle data for alternatives:\n {missing_alts}" else: # eliminate alternatives if no vehicle type data + # if this happens, alts_wide is not the same length as alts_long alts_wide = alts_wide[alts_wide._merge != "left_only"] - alts_wide.drop( - columns="_merge", inplace=True - ) # if this happens, alt_wide length will not match alt_long + alts_wide.drop(columns="_merge", inplace=True) # converting age to integer to allow interactions in utilities alts_wide["age"] = alts_wide["age"].astype(int)