Skip to content

Flexible Number of Tour & Trip IDs#581

Merged
jpn-- merged 17 commits into
ActivitySim:developfrom
dhensle:flexible_ids
Dec 8, 2022
Merged

Flexible Number of Tour & Trip IDs#581
jpn-- merged 17 commits into
ActivitySim:developfrom
dhensle:flexible_ids

Conversation

@dhensle

@dhensle dhensle commented Aug 11, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown

Coverage Status

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

@dhensle

dhensle commented Aug 19, 2022

Copy link
Copy Markdown
Contributor Author

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

@JoeJimFlood JoeJimFlood left a comment

Copy link
Copy Markdown
Contributor

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

dhensle commented Oct 28, 2022

Copy link
Copy Markdown
Contributor Author

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