Repository navigation
Fix: Incorrect capped_distance in some triclinic box situations - #5481
Open
BradyAJohnston wants to merge 3 commits into
Open
BradyAJohnston wants to merge 3 commits into
BradyAJohnston wants to merge 3 commits into
Conversation
capped_distance in some triclinic box situationscapped_distance in some triclinic box situations
Documentation build overview
|
Member
Author
|
Seems one of the old snapshots is failing but I'm pretty sure they are just incorrectly snapshotted values, looking into it |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5481 +/- ##
========================================
Coverage 93.87% 93.87%
========================================
Files 184 184
Lines 22645 22645
Branches 3220 3220
========================================
Hits 21257 21257
Misses 923 923
Partials 465 465 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Member
|
This looks great, unfortunately I won't have time to review. I'm going to un-request my review here and pick on someone else ;) |
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #4906
In triclinic boxes where both
b_xandc_yare non-zero (e.g. truncated octahedra), thensgridandpkdtreemethods ofcapped_distance/self_capped_distancemiss pairs within the cutoff. This affects bond guessing, selections, etc. Reproduced with the issue'sstruc.txtand the truncated-octahedron script; both now matchbruteforce.Changes made in this Pull Request:
_triclinic_pbc: fix the a-axis wrapping bound, which could leave coordinates just outside the primary image (affectsapply_PBC,pkdtreeandnsgrid)FastNS.coord2cellxyz: fix the same missing term in the x cell index (as suspected here)FastNS._prepare_box: size grid cells from the box's perpendicular widths, so cells are never thinner than the cutoffapply_PBC,capped_distance,self_capped_distanceandFastNSin skewed boxesLLM / AI generated code disclosure
LLMs or other AI-powered tools (beyond simple IDE use cases) were used in this contribution: no
I did use Claude to scan through and track down the issue, but I wrote the code and the tests.
PR Checklist
package/CHANGELOGfile updated?package/AUTHORS? (If it is not, add it!)Developers Certificate of Origin
I certify that I can submit this code contribution as described in the Developer Certificate of Origin, under the MDAnalysis LICENSE.