pele.landscape.smoothPath

pele.landscape.smoothPath(path, mindist, density=5.0, interpolator=None)[source]

return a smooth (interpolated) path

usefull for making movies. Especially for min-ts-min pathways returned by DoubleEndedConnect.

Parameters :

path : list of arrays

the pathway to smooth

mindist : callable

function that returns the mindist distance between two structures

dist, newcoords1, newcoords2 = mindist(coords1, coords2)

density : float, optional

how dense to do the smoothing.

interpolator : callable, optional

allows to specify a custom interpolation routine (e.g. for angle axis)

Previous topic

pele.landscape.database2graph

Next topic

pele.landscape.LocalConnect