From d3be0f1bedb09e8b785904ce83727e457b533cf8 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 dd5e279b39..f2c00fa485 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 from .util import estimation from .util import logsums as logsum @@ -154,6 +155,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(), } constants = config.get_model_constants(model_settings) locals_d.update(constants) @@ -601,6 +604,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(), } constants = config.get_model_constants(model_settings) if constants is not None: