Skip to content

Commit

Permalink
Fixed wrong default nlist value in spherical_harmonics
Browse files Browse the repository at this point in the history
  • Loading branch information
klarh committed Jun 8, 2018
1 parent 4066bfc commit e28cd12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pythia/spherical_harmonics.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ def neighbor_average(box, positions, neigh_min=4, neigh_max=4, lmax=4,
result = []
comp = freud.order.LocalDescriptors(neigh_max, lmax, rmax_guess, negative_m)
if nlist is None:
nlist = freud.locality.NearestNeighbors(box, neigh_max)
nlist.compute(box, positions, positions)
nn = freud.locality.NearestNeighbors(rmax_guess, neigh_max)
nn.compute(box, positions, positions)
nlist = nn.nlist

logger.debug('rmax: {}'.format(comp.getRMax()))

Expand Down

0 comments on commit e28cd12

Please sign in to comment.