def _get_cfg(self, f):
        """Get configuration from config file"""
        try:
            with open(f, 'r') as _fo:
                _seria_in = seria.load(_fo)
                _y = _seria_in.dump('yaml')
        except __HOLE__:
            raise FiggypyError("could not open configuration file")

        _cfg = yaml.load(_y)
        self._post_load_process(_cfg, self._gpg_config)
        for k, v in _cfg.items():
            setattr(self, k, v)
dataset/ETHPy150Open theherk/figgypy/figgypy/config.py/Config._get_cfg