def get_parameter_parser(parameter_file):
    ext = os.path.splitext(parameter_file)[1]
    if ext.lower() == '.xml':
        parameter_parser = \
            xml_parameter_parser.XMLParameterParser(parameter_file)
    elif ext.lower() == '.ini':
        err_msg = '.ini files are not yet supported'
        raise NotImplementedError(err_msg)
    else:
        err_msg = ext.lower() + ' file types are unsupported'
        raise NotImplementedError(err_msg)

    return parameter_parser
 def setUp(self):
     trecov_full_name = './data/trecov_full.xml'
     self.trecov_full = xpp.XMLParameterParser(trecov_full_name)
 def setUp(self):
     sppsz_full_name = './data/sppsz_full.xml'
     self.sppsz_full = xpp.XMLParameterParser(sppsz_full_name)
 def setUp(self):
     sppsz_proto_name = 'L:/resources/code/xml/sppsz_parameters.xml'
     self.sppsz_prototype = xpp.XMLParameterParser(sppsz_proto_name)
 def setUp(self):
     trecov_proto_name = 'L:/resources/code/xml/trecov_parameters.xml'
     self.trecov_prototype = xpp.XMLParameterParser(trecov_proto_name)