Skip to content

Commit

Permalink
move comment
Browse files Browse the repository at this point in the history
  • Loading branch information
i-am-sijia committed Feb 1, 2024
1 parent 3c60efc commit a9dd383
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions activitysim/abm/models/vehicle_type_choice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a9dd383

Please sign in to comment.