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

Compute neighbor distance #392

Merged
merged 2 commits into from
Mar 14, 2025

Conversation

schroedtert
Copy link
Collaborator

Closes #246

@schroedtert schroedtert force-pushed the neighbors-distance branch 2 times, most recently from 2082fe9 to 5dfdd1a Compare December 8, 2024 12:05
schroedtert

This comment was marked as outdated.

@schroedtert schroedtert marked this pull request as ready for review February 22, 2025 16:50
@schroedtert schroedtert requested a review from chraibi February 22, 2025 16:55
@schroedtert schroedtert force-pushed the neighbors-distance branch 4 times, most recently from 3c8bbaa to 43c290b Compare February 23, 2025 19:10
Copy link
Collaborator

@chraibi chraibi left a comment

Choose a reason for hiding this comment

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

looks good to me. Need to check functionality.

@chraibi chraibi self-requested a review March 6, 2025 08:53
chraibi
chraibi previously approved these changes Mar 6, 2025
Copy link

@mirakuepper mirakuepper left a comment

Choose a reason for hiding this comment

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

Some comments on the user guide

@@ -3176,14 +3176,21 @@
"We define two pedestrians as neighbors if their Voronoi polygons ($V_i$, $V_j$) touch at some point, in case of *PedPy* they are touching if their distance is below 1mm.\n",
"As basis for the computation one can either use the uncut or cut Voronoi polygons.\n",
"When using the uncut Voronoi polygons, pedestrian may be detected as neighbors even when their distance is quite large in low density situation.\n",
"Therefor, it is recommended to use the cut Voronoi polygons, where the cut-off radius can be used to define a maximal distance between neighboring pedestrians.\n",
"Therefor, it is recommended to use the cut Voronoi polygons, where the cut-off radius can be used to define a maximal distance between neighboring pedestrians."

Choose a reason for hiding this comment

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

"Therefore" is missing an E

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added the missing E

Also add the (preferable) option to give the neighbors not as a list,
but as rows. This way they can later better be used in other
computations.
chraibi
chraibi previously approved these changes Mar 11, 2025
@schroedtert schroedtert merged commit 3bbc4b7 into PedestrianDynamics:main Mar 14, 2025
25 checks passed
@schroedtert schroedtert deleted the neighbors-distance branch March 14, 2025 14:57
Copy link

codecov bot commented Mar 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.68%. Comparing base (0e5e402) to head (e1fd39d).
Report is 5 commits behind head on main.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Compute distance to neighbors
3 participants