@classmethod
def get_basis_group_map(cls, group_name):
    """
        Return an {element: basis} map for the BasisFamily group with the given name.
        """
    from aiida.common.exceptions import MultipleObjectsError
    family_bases = {}
    family = cls.get_basis_group(group_name)
    for node in family.nodes:
        if isinstance(node, cls):
            if node.element in family_bases:
                raise MultipleObjectsError(
                    'More than one BasisSetData for element {} found in family {}'
                    .format(node.element, group_name))
            family_bases[node.element] = node
    return family_bases
