Skip to content

Conversation

@bwentl
Copy link
Contributor

@bwentl bwentl commented Feb 13, 2024

This is to fix bug related to a hard-coded variable name in #687 when building the estimation data in chunks.

The previous pull request uses exclusively person_id, which means it will only work for mandatory destination EDBs. This change will mean that tour and trip destination EDBs will also work. This fix relies on the ID column inside the alternative data for EDB being the first column, which currently is the case.

- person_id is not compatible for tour and trip destination models, should use tour_id or trip_id instead
- to make this variable for generic, the code will now use the first column in the alternative data file
@jpn--
Copy link
Member

jpn-- commented Feb 13, 2024

This looks fine. We need a more robust estimation mode system with rigorous testing to catch these problems, but this is a reasonable patch for now. Will merge once we confirm none of the existing tests are broken (which seems quite unlikely but just in case...) Thanks!

@jpn-- jpn-- merged commit e2ed3a0 into ActivitySim:develop Feb 13, 2024
@jpn-- jpn-- mentioned this pull request Feb 14, 2024
@bwentl bwentl deleted the location_estimation_patch branch August 25, 2025 19:39
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.

2 participants