code: def get_params(self, exp, cfgname='experiment.cfg'):
          
          cfgp = ConfigParser()
          cfgp.read(os.path.join(exp, cfgname))
          section = cfgp.sections()[0]
          params = self.items_to_params(cfgp.items(section))
          params['name'] = section
          return params
docs: reads the parameters of the experiment (= path) given.