-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRunScript.py
More file actions
46 lines (39 loc) · 1.37 KB
/
RunScript.py
File metadata and controls
46 lines (39 loc) · 1.37 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
'''
Created on Mar 29, 2014
@author: jshor
'''
import argparse
import logging
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Choose which figure to graph.')
parser.add_argument('script_name',help='name of the script',
choices=['populate_spike_cache',
'update_good_trials',
'check_gpv',
'view_pca',
'cl_cnt',
'vl_look_data',
'count_clusters',
'count_vl'])
nn = parser.parse_args().script_name
if nn == 'populate_spike_cache':
from Scripts.populateSpikeLocationCache import run as psl
psl()
elif nn=='update_good_trials':
from Scripts.updateGoodTrials import run as ugt
ugt()
elif nn=='view_pca':
from Scripts.viewPCA import view_PCA as pca
pca()
elif nn=='cl_cnt':
from Scripts.graphClusterCount import cluster_count
cluster_count()
elif nn=='vl_look_data':
from Scripts.lookAtVl import vl_look
vl_look()
elif nn=='count_clusters':
from Scripts.countClusters import count
count()
elif nn=='count_vl':
from Scripts.countVlLen import count_vl
count_vl()