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

Fix workzone assignment #68

Conversation

Hussein-Mahfouz
Copy link
Collaborator

@Hussein-Mahfouz Hussein-Mahfouz commented Nov 15, 2024

This PR fixes a bug in workzone assignment, specifically in the first point below

  • zones_to_time_matrix was returning time estimates in seconds instead of minutes (see here). This was causing problems downstream as get_possible_zones compres reported NTS travel time (which is in minutes), to our time estimates, so our feasible_zones for each activity was only returning the origin zone. I have edited zones_to_time_matrix to return time in minutes: 596d2f8

  • select_workzone_optimisation was summing flows incorrectly. Actual flows were summed at the origin, while assigned_flows were summed at the destination, so the deviation calculation was not making sense. I have fixed that here: 37787ad

@sgreenbury sgreenbury changed the base branch from main to 16-filter-nts-data-to-study-area-to-avoid-unrepresentative-travel-distances-or-mode-share November 15, 2024 16:46
@Hussein-Mahfouz Hussein-Mahfouz merged commit aa9fdb9 into 16-filter-nts-data-to-study-area-to-avoid-unrepresentative-travel-distances-or-mode-share Nov 19, 2024
4 checks passed
@Hussein-Mahfouz Hussein-Mahfouz deleted the fix_workzone_assignment branch November 19, 2024 08: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