-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathconfig.py
More file actions
27 lines (18 loc) · 764 Bytes
/
config.py
File metadata and controls
27 lines (18 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from sacred import Experiment
from orca_python.utilities import Utilities
ex = Experiment("Experiment Configuration")
@ex.automain
def main(general_conf, configurations):
if not general_conf["basedir"] or not general_conf["datasets"]:
raise RuntimeError(
"A dataset has to be defined to run this program.\n"
+ "For more information about using this framework, please refer to the README."
)
if not configurations:
raise RuntimeError(
"No configuration was defined.\n"
+ "For more information about using this framework, please refer to the README."
)
interface = Utilities(general_conf, configurations)
interface.run_experiment()
interface.write_report()