make_path

make_path(k0, k1, *ks, step=0.1)

Create a path which connects the given k points

Parameters:
k0, k1, *ks

Points in k-space to connect.

step : float

Length in k-space between two samples. Smaller step -> finer detail.

Examples

>>> np.allclose(make_path(0, 3, -1, step=1).T, [0, 1, 2, 3, 2, 1, 0, -1])
True
>>> np.allclose(make_path([0, 0], [2, 3], [-1, 4], step=1.4),
...             [[0, 0], [1, 1.5], [2, 3], [0.5, 3.5], [-1, 4]])
True