-
Notifications
You must be signed in to change notification settings - Fork 664
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
Introduce Capped distances to evaluate the indices of pairs within a fixed radius #1941
Merged
richardjgowers
merged 21 commits into
MDAnalysis:develop
from
ayushsuhane:cappedfeature
Jul 12, 2018
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
e47ed4d
Clean initial Capped distance feature
ayushsuhane cd3d29c
Merge branch 'develop' of github.com:MDAnalysis/mdanalysis into cappe…
ayushsuhane 23e9868
Modification as per the review
ayushsuhane dd12343
modified zip with itertools.product
ayushsuhane 9833a69
random seed
ayushsuhane e1dce21
Capped PKDTree
ayushsuhane 8cc25fe
PEP8 and added test
ayushsuhane f02868c
Added rules for method selection and modifications
ayushsuhane 61d9c6b
Changes the return type
ayushsuhane 15e40ae
Updated with current repository and merged to remove conflicts
ayushsuhane 1d0ba7c
Merge branch 'develop' of github.com:MDAnalysis/mdanalysis into cappe…
ayushsuhane 57363bb
fixed the testcase
ayushsuhane ae6c2d9
Stacked decorators in tests
ayushsuhane 32b2f06
Removed the seed
ayushsuhane 6197b5a
Merge branch 'develop' of github.com:MDAnalysis/mdanalysis into cappe…
ayushsuhane 1068578
Modified Changelog
ayushsuhane 2218686
Update CHANGELOG
richardjgowers cea2c37
Added tests for minimum cutoff
ayushsuhane 7e25ea3
added few more tests
ayushsuhane edc5b2d
more tests
ayushsuhane 9d3a2fc
Update test_distances.py
richardjgowers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
So this way of iterating over one coordinate set is probably slower than
distance_array(ref, conf)
. I thinkguess_bonds
does it this way to avoid memory problemsThere 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.
Yes exactly. The
distance_array
cannot go beyond 5k particles. So unless we are explicitly limiting the brute force algorithm to 5k, shouldn't the more robust way be a part of the calculation. I agree once we put in the rules, the iteration over each particle would be about half as fast as the distance_array and should be replaced.