Skip to content

Commit

Permalink
allow skims in trip mode choice annotate
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensle committed Apr 23, 2024
1 parent 4085bfc commit 09f73ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions activitysim/abm/models/trip_mode_choice.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,12 @@ def trip_mode_choice(
state.add_table("trips", trips_df)

if model_settings.annotate_trips:
# need to update locals_dict to access skims that are the same .shape as trips table
locals_dict = {}
locals_dict.update(constants)
simulate.set_skim_wrapper_targets(trips_merged, skims)
locals_dict.update(skims)
locals_dict["timeframe"] = "trip"
annotate.annotate_trips(state, model_settings, trace_label, locals_dict)

if state.settings.trace_hh_id:
Expand Down

0 comments on commit 09f73ed

Please sign in to comment.