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

Improvements to distance matrices #215

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JanEricNitschke
Copy link
Collaborator

The main work in this PR is some added verbosity to the distance matrix calculations that now print which place/area they are currently calculating distances from.

Additionally i added a test that compares the contents of the precalculated place matrices with what the generate function produces. Differences highlight changes in the nav meshes or graph definition that should be investigated.

Lastly the median_dist section of the place distance matrices takes as long to compute as the full AREA_DIST_MATRIX while the other options are significantly faster. The median_dist is now set to 0.0 if no AREA_DIST_MATRIX is present to speed up the calculation.

@JanEricNitschke
Copy link
Collaborator Author

Adjusted AREA_DIST_MATRIX to have integer keys instead of str keys (str(integer)) to avoid the needless conversions.

This is backwards incompatible for people who are using them from a pervious version. (Which tbh is probably just me...)

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.

None yet

1 participant