def load_experiment_config_file():
# Load the config file, this holds information about data, black box fn etc.
try:
cfg_filename = "config.cfg"
config = SafeConfigParser(allow_no_value=True)
config.read(cfg_filename)
if not config.has_option("HPOLIB", "is_not_original_config_file"):
logger.critical("Config file in directory %s seems to be an"
" original config which was not created by wrapping.py. "
"Are you sure that you are in the right directory?" %
os.getcwd())
sys.exit(1)
return config
except IOError as e:
logger.critical("Could not open config file in directory %s",
os.getcwd())
sys.exit(1)
评论列表
文章目录