-
Notifications
You must be signed in to change notification settings - Fork 23
/
config.py
33 lines (31 loc) · 807 Bytes
/
config.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
conf = {
'train': {
'input': '/mnt/train.7z',
'output_dir': 'data',
'calc_stats': True,
'asm_folder': 'train_asm',
'labels': '../trainLabels.csv',
'limit': None
# 'limit': 100
},
'test': {
'input': '/mnt/test.7z',
'output_dir': 'data',
'calc_stats': False,
'asm_folder': 'test_asm/',
'labels': '../trainLabels.csv',
'limit': None
# 'limit': 100
},
'sample': {
'input': 'dataSample.7z',
'output_dir': 'sample_data',
'calc_stats': True,
'asm_folder': 'sample_asm',
'labels': '../trainLabels.csv'
}
}
def out_folder(env):
return conf[env]['output_dir']
def locate_file(env, fname):
return '%s/%s' % (out_folder(env), fname)