-
Notifications
You must be signed in to change notification settings - Fork 8
/
main.py
38 lines (28 loc) · 915 Bytes
/
main.py
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
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pathlib import Path
from experiments.experiment_process import do_process
from tools.file_io import load_settings_file
from tools.various import get_argument_parser
from tools.printing import InformAboutProcess, date_and_time
__author__ = 'Konstantinos Drossos'
__docformat__ = 'reStructuredText'
__all__ = []
def main():
args = get_argument_parser().parse_args()
model_to_use = args.model
config_file = args.config_file
file_ext = args.file_ext
settings_dir = args.file_dir
date_and_time()
with InformAboutProcess('Loading settings'):
settings = load_settings_file(
file_name=Path(f'{config_file}{file_ext}'),
settings_dir=Path(settings_dir))
do_process(
settings_path=None,
settings=settings,
model_to_use=model_to_use)
if __name__ == '__main__':
main()
# EOF