-
Notifications
You must be signed in to change notification settings - Fork 944
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
Deprecate neighbor_iter in favor of iter_neighbors #1184
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1184 +/- ##
==========================================
- Coverage 89.38% 89.09% -0.30%
==========================================
Files 19 19
Lines 1300 1302 +2
Branches 264 264
==========================================
- Hits 1162 1160 -2
- Misses 100 104 +4
Partials 38 38
Continue to review full report at Codecov.
|
warn( | ||
"`neighbor_iter` is deprecated in favor of `iter_neighbors` " | ||
"and will be removed in the subsequent version." | ||
) |
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.
Notice I intentionally didn't use DeprecationWarning
, because when I tested this warn, it didn't show up when I used DeprecationWarning
. It will show up as UserWarning
.
5573b1f
to
b1fab1d
Compare
I concur this makes the methods consistent. Action (i.e. get or iter) and then target (i.e. neighbors or neighborhood).
Based on the diversity of opinions in #980 and as we are only a week away from the dev session, to ensure inclusivity we can bring up for concurrence. Could you please squash your commits? |
b1fab1d
to
bcb71ed
Compare
Squashed. |
@jackiekazil Can you due to the debate on this subject can you give this pull request an additional review. I concur with @rht approach. |
I think this PR is not as controversial as #980. The |
I'm planning to renew #835, but this work depends on getting this PR merged, because I can't cause a merge conflict by unnecessarily annotating |
LGTM |
Thank you for your work on this @rht |
Could it be that |
It still return agents: Line 722 in 7f5a32e
|
Ah I accidentally replaced I also see where I went wrong, it's stated that way in the 2.0.0 release notes. I opened a PR to fix this: #1807. |
See #980.