def merge_pole_dicts(list_pole_dict):
    """
    Given a list of dict of poles, merge them into one dict of poles

    Parameters
    ----------
    list_pole_dict:  list of dict
        Dict containing information of poles, which are calculated from
        xas_fsolver and rixs_fsolver.

    Returns
    -------
    new_pole_dict: dict of poles
        New dict of poles.
    """
    new_pole_dict = {'eigval': [], 'npoles': [], 'norm': [], 'alpha': [],
        'beta': []}
    for poles_dict in list(list_pole_dict):
        new_pole_dict['eigval'].extend(poles_dict['eigval'])
        new_pole_dict['npoles'].extend(poles_dict['npoles'])
        new_pole_dict['norm'].extend(poles_dict['norm'])
        new_pole_dict['alpha'].extend(poles_dict['alpha'])
        new_pole_dict['beta'].extend(poles_dict['beta'])
    return new_pole_dict
