def read_trigger_parameters(filename):
parameters = []<EOL>f = open(filename, '<STR_LIT:r>')<EOL>print('<STR_LIT>')<EOL>for line in f:<EOL><INDENT>if line[<NUM_LIT:0>] == '<STR_LIT:#>':<EOL><INDENT>print(line.rstrip('<STR_LIT:\n>').lstrip('<STR_LIT:\n>'))<EOL><DEDENT>else:<EOL><INDENT>parameter_dict = ast.literal_eval(line)<EOL>trig_par = TriggerParameters(parameter_dict)<EOL>parameters.append(trig_par)<EOL><DEDENT><DEDENT>f.close()<EOL>return parameters<EOL>
Read the trigger parameters into trigger_parameter classes.

    :type filename: str
    :param filename: Parameter file

    :returns: List of :class:`eqcorrscan.utils.trigger.TriggerParameters`
    :rtype: list

    .. rubric:: Example

    >>> from eqcorrscan.utils.trigger import read_trigger_parameters
    >>> parameters = read_trigger_parameters('parameters') # doctest: +SKIP