'Load AMP parameters from the configuration file.'

def load_config(self, config):

    amp_section = ('amp_' + self.amp_name)
    if (hasattr(config, 'has_section') and config.has_section(amp_section)):
        logger.debug('{}:    Load    configuration'.format(self.NAME))
        for (param, _) in config.items(amp_section):
            try:
                self.configs[param] = config.get_float_value(amp_section, param)
            except ValueError:
                self.configs[param] = config.get_value(amp_section, param).split(',')
                if (len(self.configs[param]) == 1):
                    self.configs[param] = self.configs[param][0]
            logger.debug('{}:    Load    parameter:    {}    =    {}'.format(self.NAME, param, self.configs[param]))
    else:
        logger.debug('{}:    Can    not    find    section    {}    in    the    configuration    file'.format(self.NAME, self.amp_name))
        return False
    if self.enable():
        for k in ['regex', 'refresh']:
            if (k not in self.configs):
                logger.warning('{}:    Can    not    find    configuration    key    {}    in    section    {}'.format(self.NAME, k, self.amp_name))
                self.configs['enable'] = 'false'
    else:
        logger.debug('{}    is    disabled'.format(self.NAME))
    self.configs['count'] = 0
    return self.enable()
