def _excerpt_step(n_samples, n_excerpts=None, excerpt_size=None):
    assert n_excerpts >= 2
    step = max((n_samples - excerpt_size) // (n_excerpts - 1),
               excerpt_size)
    return step
Compute the step of an excerpt set as a function of the number
dataset/ETHPy150Open kwikteam/phy/phy/io/array.py/_excerpt_step