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

Flexible Number of Tour & Trip IDs #581

Merged
merged 17 commits into from
Dec 8, 2022
Merged

Conversation

dhensle
Copy link
Contributor

@dhensle dhensle commented Aug 11, 2022

This pull request removes the hard coded max number of trips and tours available in ActivitySim. For details, see the presentation here and scope here.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 0.0% when pulling 69008a9 on dhensle:flexible_ids into 3b7e551 on ActivitySim:develop.

@dhensle
Copy link
Contributor Author

dhensle commented Aug 19, 2022

All of the changes present in this pull request are also implemented in the school escorting pull request. The school escorting pull request also includes additional changes to this part of the code to add "tour flavors" for school escorting.

@dhensle dhensle requested a review from JoeJimFlood October 20, 2022 16:11
Copy link
Contributor

@JoeJimFlood JoeJimFlood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! A couple comments on canonical_ids.py:

  • The functions read_alts_file() and read_spec_file() are identical. Was this intentional?
  • I know I'm being a bit nitpicky here, but the comment in Line 445 reflects the code before this change when MAX_TRIPS_PER_LEG was hard-coded. I'm concerned that this might confuse future developers. Possibly have it say 1st in = max_trips_per_leg + 1 or something like that?

@dhensle
Copy link
Contributor Author

dhensle commented Oct 28, 2022

Thanks for your comments Joe. And please continue to be "nitpicky" as that is what we need in these reviews! I have removed the deuplicative read_spec_file() and left the read_alts_file() in place. The comment has been updated.

@jpn-- jpn-- merged commit f01e8ac into ActivitySim:develop Dec 8, 2022
@dhensle dhensle deleted the flexible_ids branch February 27, 2023 20:05
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.

4 participants