-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
38 lines (28 loc) · 1.15 KB
/
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
import time
import warnings
from matplotlib.axes._axes import _log as matplotlib_axes_logger
from src.project_init import organize_dirs
from src.result_exporter import print_announcement
# avoid annoying warnings
matplotlib_axes_logger.setLevel('ERROR')
warnings.filterwarnings('ignore')
def main():
# initialize project structure
print('initializing the demo...')
organize_dirs()
print('demo project is initialized')
# import scenario executors
from src.multiple_links_sc_classification import execute_multiple_links_scenario
from src.single_link_sc_regression import execute_single_link_scenario
start_time = time.perf_counter()
'''single link scenario'''
print_announcement('single link scenario: lightpath distance prediction with constellation samples')
execute_single_link_scenario()
'''multiple link scenario'''
print_announcement(
'multiple links scenario: launch power prediction with constellation samples and sample location'
)
execute_multiple_links_scenario()
print_announcement(f'All done in {int(time.perf_counter() - start_time)} seconds!')
if __name__ == '__main__':
main()