-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParameters.py
More file actions
55 lines (43 loc) · 1.13 KB
/
Parameters.py
File metadata and controls
55 lines (43 loc) · 1.13 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
'''
Parameters required for the code
'''
import os,sys
'''
Please add the following line in ~/.bashrc
export MNTR_BB_ROOT_DIR = <YOUR PROJECT ROOT>
'''
PROJECT_ROOT = os.environ['POSTO_ROOT_DIR']
sys.path.append(PROJECT_ROOT)
LIB_PATH=PROJECT_ROOT+'/'+'lib/'
SRC_PATH=PROJECT_ROOT+'/'+'src/'
OUTPUT_PATH=PROJECT_ROOT+'/'+'output/'
PICKLE_PATH=PROJECT_ROOT+'/'+'pickles/'
DATA_PATH=PROJECT_ROOT+'/'+'data/'
PICKLE_FLAG=True
REFINE=True
B=100000
c=0.99
VIZ_PER_COVERAGE=20
VIZ = True
'''
Colors for terminal messages
'''
class msg:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKCYAN = '\033[96m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
def info(s): print(f"{msg.OKCYAN}[INFO]{msg.ENDC} {s}")
def note(s): print(f"{msg.OKBLUE}[INFO]{msg.ENDC} {s}")
def ok(s): print(f"{msg.OKGREEN}[SUCCESS]{msg.ENDC} {s}")
def warn(s): print(f"{msg.WARNING}[WARN]{msg.ENDC} {s}")
def die(s, hint=None, code=2):
print(f"{msg.FAIL}[ERROR]{msg.ENDC} {s}")
if hint:
print(f"{msg.WARNING}[HINT]{msg.ENDC} {hint}")
sys.exit(code)