def pulse_length_samples(pulse, samp_rate):
    """ Number of samples a given pulse is expected to occupy
    """

    t_step = 1 / samp_rate
    # Number of samples
    n_pts = int(
        (pulse.dur - 0.5 * t_step) // t_step + 1
    )

    return n_pts