def _make_overlap_dict(overlapping_epochs, overlapping_samples, epoch_index):
    """ Make a dictionary of overlapping sanples that can easily be used to look up samples to exclude

    Parameters
    ----------
    overlapping_epochs :
    overlapping_samples :
    epoch_index :

    Returns
    -------
    overlap_dict : dict
        Dictionary whos keys correspond to Epochs that overlap with others, and values are 1d array of samples
        that overlap
        {Epoch: (Samples,)}
    """
    index_list = list(epoch_index)
    overlap_dict = {}
    for epoch, samples in zip(overlapping_epochs[:,1], overlapping_samples):
        overlap_dict[index_list.index(epoch)] = samples
    return overlap_dict