-
Notifications
You must be signed in to change notification settings - Fork 50
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
Remove global search flag #1039
Conversation
@tommy-waltmann I didn't remember to mention this in earlier PRs, but one thing that might be helpful to maintain continuously on the next branch is some sort of migration guide. We can expand on it when it's actually time for the 3.0 release, but it would be helpful during each PR to maintain some minimal notes for how users should adapt to the change. In the case of removing |
@vyasr That already exists, it's in |
Right sorry I forgot that we added that in #1013. In that case the action item would be to update migration.rst for this change as well (but I also see that this PR is a draft so no rush, I just did a batch review this weekend). |
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.
Couple of minor comments but otherwise LGTM.
@@ -32,3 +32,6 @@ Overview of API Changes | |||
* - Create a custom neighborlist from arrays. | |||
- ``freud.locality.NeighborList.from_arrays(..., distances=...)`` | |||
- ``freud.locality.NeighborList.from_arrays(..., vectors=...)`` | |||
* - Compare environments of all particle pairs with ``EnvironmentCluster``. | |||
- ``env_cluster.compute(..., global_search=True)`` | |||
- ``env_cluster.compute(..., neighbors=all_pairs_nlist, ...)`` |
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.
Maybe worth showing how to construct all_pairs_nlist
. Depends on #1051's new feature.
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.
Good suggestion. However, I'd like to wait until we have an official release out with the changes from #1051 on it before adding the utility method in the example.
Description
This PR removes the global_search flag in
EnvironmentCluster
, in favor of having users just give a neighborlist where every particle is a neighbor of every other particle.Motivation and Context
This PR makes the API more intuitive and less confusing.
Resolves: #984
How Has This Been Tested?
I have converted a previous test that used the
global_search=True
option.Types of changes
Checklist: