-
Notifications
You must be signed in to change notification settings - Fork 100
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
Conversation
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. |
There was a problem hiding this 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()
andread_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 say1st in = max_trips_per_leg + 1
or something like that?
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. |
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.