Skip to content

Commit

Permalink
allow protect columns in parking location choice
Browse files Browse the repository at this point in the history
  • Loading branch information
i-am-sijia committed May 14, 2024
1 parent b562e08 commit 33edae6
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions activitysim/abm/models/parking_location_choice.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,19 @@ def choose_parking_location(
locals_dict["PARKING"] = skims["op_skims"].dest_key

spec = get_spec_for_segment(state, model_settings, segment_name)
trips = drop_unused_columns(trips, spec, locals_dict, custom_chooser=None)
trips = drop_unused_columns(
trips,
spec,
locals_dict,
custom_chooser=None,
additional_columns=model_settings.compute_settings.protect_columns,
)
alternatives = drop_unused_columns(
alternatives, spec, locals_dict, custom_chooser=None
alternatives,
spec,
locals_dict,
custom_chooser=None,
additional_columns=model_settings.compute_settings.protect_columns,
)

destination_sample = logit.interaction_dataset(
Expand Down

0 comments on commit 33edae6

Please sign in to comment.