-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update PeriodicKDTree to support box overhaul (#952)
* test * Update PeriodicKDTree to support box overhaul There were certain situations where the periodic KDTree was not updated properly to support the updates to the periodicity and the box overhaul. There is still one test case failing for `TiledCompound`, but this PR helps a lot with generating bonds. Once the `TiledCompound` error is fixed, this should be good to merge. * Fix periodic kd tree, add in kwargs for k value in query * Update KDTree with a Compound creation method Based on discussions with @umesh-timalsina and @daico007, the PeriodicCKDTree has been updated with a class method to generate a KDTree by passing in a compound. This makes creation of kdtrees much easier and simpler for use in mBuild. * Update mbuild/periodic_kdtree.py * Apply suggestions from code review Co-authored-by: Umesh Timalsina <[email protected]> * Update KDTree name * Fix import * Update mbuild/lib/recipes/tiled_compound.py Co-authored-by: Co Quach <[email protected]> Co-authored-by: Umesh Timalsina <[email protected]>
- Loading branch information
1 parent
a91f425
commit 617079b
Showing
3 changed files
with
108 additions
and
64 deletions.
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