Skip to content

Conversation

@jpn--
Copy link
Member

@jpn-- jpn-- commented May 2, 2024

In #774, we added the ability to use the "reindex" function in location choice models, essentially allowing a user to merge in data from the land_use table into the chooser table from inside a utility spec. This is problematic for sharrow.

This PR takes a different approach: typically the alternatives table in the sampling step as an index-only dataframe, but it doesn't need to be. Here we add a config setting on the trip destination component to allow users to name columns that should be merged onto the alternatives before they are broadcast against the choosers. This is more efficient and works with sharrow.

This PR pairs with ActivitySim/sandag-abm3-example#11, which implements it on the SANDAG demo model.

@jpn--
Copy link
Member Author

jpn-- commented May 6, 2024

Closed in favor of #865

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant