def read_parameters(infile='<STR_LIT>'):
try:<EOL><INDENT>import ConfigParser<EOL><DEDENT>except ImportError:<EOL><INDENT>import configparser as ConfigParser<EOL><DEDENT>import ast<EOL>f = open(infile, '<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><DEDENT>f.close()<EOL>config = ConfigParser.ConfigParser()<EOL>config.read(infile)<EOL>template_names = list(ast.literal_eval(config.get("<STR_LIT>",<EOL>"<STR_LIT>")))<EOL>parameters =EQcorrscanParameters(template_names=template_names,<EOL>lowcut=config.get("<STR_LIT>", "<STR_LIT>"),<EOL>highcut=config.get("<STR_LIT>", "<STR_LIT>"),<EOL>filt_order=config.get("<STR_LIT>",<EOL>"<STR_LIT>"),<EOL>samp_rate=config.get("<STR_LIT>",<EOL>"<STR_LIT>"),<EOL>debug=config.get("<STR_LIT>", "<STR_LIT>"),<EOL>startdate=config.get("<STR_LIT>",<EOL>"<STR_LIT>"),<EOL>enddate=config.get("<STR_LIT>", "<STR_LIT>"),<EOL>archive=config.get("<STR_LIT>", "<STR_LIT>"),<EOL>arc_type=config.get("<STR_LIT>",<EOL>"<STR_LIT>"),<EOL>cores=config.get("<STR_LIT>", "<STR_LIT>"),<EOL>plotvar=config.getboolean("<STR_LIT>",<EOL>"<STR_LIT>"),<EOL>plotdir=config.get("<STR_LIT>", "<STR_LIT>"),<EOL>plot_format=config.get("<STR_LIT>",<EOL>"<STR_LIT>"),<EOL>tempdir=ast.literal_eval(config.<EOL>get("<STR_LIT>",<EOL>"<STR_LIT>")),<EOL>threshold=config.get("<STR_LIT>",<EOL>"<STR_LIT>"),<EOL>threshold_type=config.get("<STR_LIT>",<EOL>"<STR_LIT>"),<EOL>trigger_interval=config.get("<STR_LIT>",<EOL>"<STR_LIT>")<EOL>)<EOL>return parameters<EOL>
Read the default parameters from file.

:type infile: str
:param infile: Full path to parameter file.

:returns: parameters read from file.
:rtype: :class:`eqcorrscan.utils.parameters.EQcorrscanParameters`