-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGauOptX.py
More file actions
19 lines (16 loc) · 717 Bytes
/
GauOptX.py
File metadata and controls
19 lines (16 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from GauOptX.interface import parser, BODriver, load_objective, OutputEng
if __name__ == '__main__':
import sys,os
if len(sys.argv)<1:
print('Need the config file!')
exit()
configfile = sys.argv[1]
curpath = os.path.dirname(os.path.abspath(configfile))
config = parser(configfile)
config['prjpath'] = curpath
obj_func = load_objective(config)
driver = BODriver(config, obj_func)
bo = driver.run()
# bo.save_report(os.path.join(curpath,config['experiment-name']+'_report.txt'))
bo.save_evaluations(os.path.join(curpath,config['experiment-name']+'_evaluations.txt'))
bo.save_models(os.path.join(curpath,config['experiment-name']+'_model.txt'))