def filter_projects(projects, authors, reverse=False):
    'Filter projects by the author(s)\n\n    Parameters\n    ----------\n    projects : list of dict\n        The publication citations\n    authors : set of list of str\n        The authors to be filtered against\n    reverse : bool, optional\n        If True reverse the order, defaults to False\n    '
    projs = []
    for proj in projects:
        team_names = set(gets(proj['team'], 'name'))
        if (len((team_names & authors)) == 0):
            continue
        projs.append(proj)
    projs.sort(key=id_key, reverse=reverse)
    return projs
Filter projects by the author(s)

Parameters
----------
projects : list of dict
    The publication citations
authors : set of list of str
    The authors to be filtered against
reverse : bool, optional
    If True reverse the order, defaults to False
def filter_projects(projects, authors, reverse=False):
    'Filter projects by the author(s)\n\n    Parameters\n    ----------\n    projects : list of dict\n        The publication citations\n    authors : set of list of str\n        The authors to be filtered against\n    reverse : bool, optional\n        If True reverse the order, defaults to False\n    '
    projs = []
    for proj in projects:
        team_names = set(gets(proj['team'], 'name'))
        if (len((team_names & authors)) == 0):
            continue
        projs.append(proj)
    projs.sort(key=id_key, reverse=reverse)
    return projs