-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
36 lines (31 loc) · 861 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
# main.py
import logging
from pathlib import Path
from utils.logger import setup_logger
from utils.config import load_config
def init_project():
"""Initialize project structure and configurations."""
# Create necessary directories
directories = [
'data/raw',
'data/processed',
'algorithms',
'models',
'utils',
'tests',
'logs',
'results/visualizations',
'notebooks',
'docs',
'config',
'scripts'
]
for directory in directories:
Path(directory).mkdir(parents=True, exist_ok=True)
# Initialize logger
logger = setup_logger()
logger.info("Project structure initialized successfully")
return logger
if __name__ == "__main__":
logger = init_project()
logger.info("TSP Optimizer initialization complete")