code: def read_trigger_parameters(filename):
      
      parameters = []
      f = open(filename, 'r')
      print('Reading parameters with the following header:')
      for line in f:
          if line[0] == '#':
              print(line.rstrip('\n').lstrip('\n'))
          else:
              parameter_dict = ast.literal_eval(line)
              # convert the dictionary to the class
              trig_par = TriggerParameters(parameter_dict)
              parameters.append(trig_par)
      f.close()
      return parameters
docs: 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