This does look interesting! – It would be great if anyone tried integrating it into MDAnalysis, either by adapting the existing code or by trying periodic_kdtree as a replacement of the existing KDTree.
>
> I haven't tried it yet, but it seems like something that could be useful for MDAnalysis in the future.
> -Chris Ing
>
> On Wednesday, 30 May 2012 18:47:40 UTC-4, jmborr wrote:
> A naive way would be to replicate the center in each neighboring cell
> (26 cells) and do the search. Last, remove the duplicate contacts
>
> indices=[]
> for center in (center + center_images):
> indices += kdtree.search_center_radius(center, radius)
> indices = unique(indices)
>
> I guess it'd be 27 times slower :(
>
> On May 30, 4:26 pm, Oliver Beckstein <
orbec...@gmail.com> wrote:
> > Hi,
> >
> > On 30 May, 2012, at 13:22, jmborr wrote:
> >
> > > AtomNeighborSearch( sel1 ).search_list( sel2, radius) returns atoms of
> > > sel1 in contact with atoms of sel2, but can periodic boundary
> > > conditions be passed?
> >
> > No, the KDTree algorithm cannot deal with periodic boundaries.
> >
> > For simple PBC (i.e. orthorhombic boxes) you can use the slower distance_array based code.
> >
> > Maybe someone has a clever idea how to hack it into the KDTree code?
> >
> > Oliver
> >
> > --
> > Oliver Beckstein *
orbec...@gmx.net
> > skype: orbeckst *
orbec...@gmail.com
>
> You received this message because you are subscribed to the Google Groups "MDnalysis discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to