Skip to content

Commit

Permalink
Acknowledgments to Parvalli (#1671)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmborr authored and kain88-de committed Sep 18, 2017
1 parent 65a6d6b commit 76cd70c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions package/MDAnalysis/lib/pkdtree.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ class PeriodicKDTree(object):
A tree is first constructed with the coordinates wrapped onto the central
cell. A query for neighbors around a center point is performed first by
wrapping the center point coordinates to the central cell, then generating
images of this wrapped center point and finally searching for neighbors
close to the images.
images of this wrapped center point (thanks to
https://github.com/patvarilly/periodic_kdtree for the idea) and finally
searching for neighbors close to the images.
Only the necessary number of center point images is generated for each
case. For instance, if the wrapped center point lies well within the cell
Expand Down Expand Up @@ -146,7 +147,8 @@ def set_coords(self, coords):

def find_centers(self, center_point, radius):
"""
Find relevant images of a center point.
Find relevant images of a center point, inspired by
https://github.com/patvarilly/periodic_kdtree
Parameters
----------
Expand Down

0 comments on commit 76cd70c

Please sign in to comment.