pele.landscape._smooth_path#
- pele.landscape._smooth_path.smooth_path()[source]
-
def smooth_path(path, mindist, density=5.0, interpolator=None):return a smooth (interpolated) path
useful for making movies. Especially for min-ts-min pathways returned by DoubleEndedConnect.
- Parameters:
- pathlist of arrays
the pathway to smooth
- mindistcallable
function that returns the mindist distance between two structures
dist, newcoords1, newcoords2 = mindist(coords1, coords2)- densityfloat, optional
how dense to do the smoothing.
- interpolatorcallable, optional
allows to specify a custom interpolation routine (e.g. for angle axis)