import json


def load_emodel_params(emodel, params_path):
    """Get optimized parameters.

    Args:
        emodel (str): name of the emodel
        params_path (str): path to the optimized parameters json file

    Returns:
        dict: optimized parameters for the given emodel
    """
    with open(params_path, "r", encoding="utf-8") as params_file:
        params = json.load(params_file)

    param_dict = params[emodel]["params"]

    return param_dict