import re


def file_name(f_name):
    """
        find file name of file
        (i.e. remove the path)
        remove extension
    """
    list_name = re.findall(".*/(.*)[.].*", f_name)
    file_name_short = list_name[0] if not list_name == [] else f_name
    return file_name_short