import ast


def parse_param_file(param_file_name):
    """
    Read parameters for fault from parameter file
    """
    params={}
    with open(param_file_name) as f_in:
        for line in f_in:
            var, value = line.strip().split('=')
            params[var.strip()] = ast.literal_eval(value.strip())
    return params