From 0630659b71df02d1e16cc643dbf1c9cf8c56282a Mon Sep 17 00:00:00 2001 From: David Hensle Date: Fri, 15 Dec 2023 17:02:59 -0800 Subject: [PATCH] landuse and reindex in loc choice --- activitysim/abm/models/location_choice.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/activitysim/abm/models/location_choice.py b/activitysim/abm/models/location_choice.py index 937721c05..8ef502d32 100644 --- a/activitysim/abm/models/location_choice.py +++ b/activitysim/abm/models/location_choice.py @@ -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 @@ -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": inject.get_table("land_use").to_frame(), } locals_d.update(model_settings.CONSTANTS or {}) @@ -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": inject.get_table("land_use").to_frame(), } locals_d.update(model_settings.CONSTANTS or {})