def select_files(files, search):
    """Select files based on a search term of interest.

    Parameters
    ----------
    files : list of str
        File list.
    search : str
        String to use to keep files.

    Returns
    -------
    list of str
        File list with selected files kept.
    """

    return [file for file in files if search in file]