forked from ludovicchaput/FastTargetPred
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFastTargetPred.py
More file actions
37 lines (30 loc) · 967 Bytes
/
Copy pathFastTargetPred.py
File metadata and controls
37 lines (30 loc) · 967 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
28
29
30
31
32
33
34
35
36
37
__version__ = "2.0.0"
# Python 3.8+ Built-in packages
import sys
import time
# Check Python version using modern syntax
if sys.version_info < (3, 8):
print(
"This program requires Python 3.8 or higher. Please upgrade your Python version."
)
sys.exit(1)
# Local packages
from src import texts
from src.misc import system_verification, clean_up
from src.workflow import start
def main() -> None:
"""Main entry point for FastTargetPred."""
print(texts.app_header.format(__version__))
print(texts.check_system, end="")
system_ok, messages = system_verification()
if system_ok:
print(texts.checked)
start()
else:
print(texts.system_not_ok + "\n\t".join(messages))
clean_up()
if __name__ == "__main__":
begin_time = time.time()
main()
end_time = time.time()
print(f"Elapsed time for the entire script: {end_time - begin_time:.2f} seconds.")