interpolate_labels

helper.interpolate_labels(regions)

Create a scipy.interpolator.RegularGridInterpolator, using ‘nearest’ method for the region labels (or any 3D numpy grid) over a unit box ([0,1]) in all axes.

Parameters

Name Type Description Default
regions numpy.array 3D numpy array of region labels required

Returns

Name Type Description
scipy.interpolate.RegularGridInterpolator a scipy RegularGridInterpolator object that works on the fractional coordinates of atoms