Skip to content

Commit

Permalink
fix to actually use search_cutoff
Browse files Browse the repository at this point in the history
  • Loading branch information
computron committed Apr 23, 2018
1 parent 0ee1842 commit dad9d6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pymatgen/analysis/local_env.py
Expand Up @@ -2587,7 +2587,8 @@ def get_nn_data(self, structure, n, length=None):
"No valid targets for site within cation_anion constraint!")

# get base VoronoiNN targets
vnn = VoronoiNN(weight="solid_angle", targets=target, cutoff=6)
vnn = VoronoiNN(weight="solid_angle", targets=target,
cutoff=self.search_cutoff)
nn = vnn.get_nn_info(structure, n)

# adjust solid angle weights based on distance
Expand Down

0 comments on commit dad9d6d

Please sign in to comment.