def partials_stretch(partials, factor, inplace=False):
    """
    Stretch the partials in time by a given constant factor

    Args:
        partials: a list of partials
        factor: float
            a factor to multiply all times by
        inplace:
            modify partials in place
    """
    if inplace:
        for p in partials:
            p[:, (0)] *= factor
        return partials
    else:
        out = []
        for p in partials:
            p = p.copy()
            p[:, (0)] *= factor
            out.append(p)
        return out
