get_neighborhood
does not work when cutoff_radius
is specified
#153
Labels
bug
Something isn't working
get_neighborhood
does not work when cutoff_radius
is specified
#153
It's actually a very rare case, but the following code does not work:
Output :
inf
(while it should be some finite number since different points do not have different neighborhood)The reason is
get_extended_positions
fromstructuretoolkit.common.helper
does not correctly calculate the distance of external points to the nearest point in the box. I always knew that this could be a problem but I guess I should come up with a decent algorithm.The text was updated successfully, but these errors were encountered: