The distance interpolator can in some cases return NaN (e.g.,the projected position of one atom does not fit within any element of the triangolated surface). In this case, the triangulation returns NaN as a distance, and scipy.stats.binned_statistic() complains because one of the positions is NaN.
The distance interpolator can in some cases return NaN (e.g.,the projected position of one atom does not fit within any element of the triangolated surface). In this case, the triangulation returns NaN as a distance, and scipy.stats.binned_statistic() complains because one of the positions is NaN.