def get_name(file_name,Trodes=False):
    """Function to fetch name data from string of names

    Parameters
    ----------
    file_name : un-cleaned file name

    Returns
    -------
    date: string, cleaned experiment data
    """
    # split file name
    if Trodes:
        date=file_name[5:12]
    else:
        try:
            file_name=file_name.split('/')[-2]
            date = file_name[5:12]
        except:
            date=file_name[5:12]
    print(date)
    return date