Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alts Attributes #862

Closed
wants to merge 2 commits into from
Closed

Alts Attributes #862

wants to merge 2 commits into from

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