-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Compute neighbor distance #392
base: main
Are you sure you want to change the base?
Compute neighbor distance #392
Conversation
2082fe9
to
5dfdd1a
Compare
5dfdd1a
to
de0963a
Compare
pedpy/methods/method_utils.py
Outdated
as_list (bool): Return the neighbors as a list per pedestrian and frame, | ||
if true, otherwise each neighbor is in a single row. |
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.
I added a warning in the API description and the user guide notebook that discourages usage of the function with the default value. Do we additionally want to emit a deprecation warning if it is set to True?
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.
After thinking about: I also added a deprecation warning, this way everybody gets informed when using the function, without any need to read a up-to-date documentation. This way more user will update their scripts (hopefully).
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.
I like this explicit solution better.
6f86a73
to
3c8bbaa
Compare
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.
3c8bbaa
to
43c290b
Compare
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 good to me. Need to check functionality.
Codecov ReportAll modified and coverable lines are covered by tests ✅
☔ View full report in Codecov by Sentry. |
Closes #246