Skip to content

Commit

Permalink
Merge pull request ActivitySim#774 from SANDAG/BayDAG_cont8_lu_and_re…
Browse files Browse the repository at this point in the history
…index_in_loc_choice

BayDAG Contribution #8: Landuse and Reindex available in location choice
  • Loading branch information
jpn-- authored Mar 19, 2024
2 parents ff61744 + 48be6f4 commit 94c4db8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions activitysim/abm/models/location_choice.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
)
from activitysim.core.interaction_sample import interaction_sample
from activitysim.core.interaction_sample_simulate import interaction_sample_simulate
from activitysim.core.util import reindex

# import multiprocessing

Expand Down Expand Up @@ -157,6 +158,8 @@ def _location_sample(
"orig_col_name": skims.orig_key, # added for sharrow flows
"dest_col_name": skims.dest_key, # added for sharrow flows
"timeframe": "timeless",
"reindex": reindex,
"land_use": state.get_dataframe("land_use"),
}
locals_d.update(model_settings.CONSTANTS or {})

Expand Down Expand Up @@ -620,6 +623,8 @@ def run_location_simulate(
"orig_col_name": skims.orig_key, # added for sharrow flows
"dest_col_name": skims.dest_key, # added for sharrow flows
"timeframe": "timeless",
"reindex": reindex,
"land_use": state.get_dataframe("land_use"),
}
locals_d.update(model_settings.CONSTANTS or {})

Expand Down
2 changes: 2 additions & 0 deletions activitysim/abm/models/trip_destination.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ def _destination_sample(
"size_terms": size_term_matrix,
"size_terms_array": size_term_matrix.df.to_numpy(),
"timeframe": "trip",
"land_use": state.get_dataframe("land_use"),
}
)
locals_dict.update(skims)
Expand Down Expand Up @@ -925,6 +926,7 @@ def trip_destination_simulate(
"size_terms": size_term_matrix,
"size_terms_array": size_term_matrix.df.to_numpy(),
"timeframe": "trip",
"land_use": state.get_dataframe("land_use"),
}
)
locals_dict.update(skims)
Expand Down

0 comments on commit 94c4db8

Please sign in to comment.