def chunk_spikes(spikes, start, end):
    """
    Get a subset of spike between start and end time

    Parameters
    ----------
    spikes: ndarray
        array with timestams of a cell
    start: float
        time of start the chunk
    end: float
        time of end the chunk

    Returns
    -------
    chunk: ndarray
        subset of spikes

    """
    chunk = spikes[(spikes >= start) * (spikes <= end)]
    return chunk
