-
Notifications
You must be signed in to change notification settings - Fork 0
/
Mouse_paths.py
205 lines (192 loc) · 7.36 KB
/
Mouse_paths.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
def get_cue_days(mouse):
if mouse=="M2":
return M2_cue_days()
elif mouse=="M3":
return M3_cue_days()
elif mouse=="M4":
return M4_cue_days()
elif mouse=="M5":
return M5_cue_days()
def cue_days_to_colors(cue_days):
colours = []
for i in cue_days:
if i == 0:
colours.append("k")
elif i == 1:
colours.append("r")
return colours
def find_last2_control_days(cue_days):
last2_control_days = []
for i in range(len(cue_days)):
if cue_days[i]==1:
last2_control_days.append(i-1)
last2_control_days.append(i-2)
# return index of last 2 control days
return last2_control_days
def M2_paths():
paths = ["\M2_D1_2019-09-02_11-41-51",
"\M2_D2_2019-09-03_11-10-45",
"\M2_D3_2019-09-04_10-57-41",
"\M2_D4_2019-09-05_10-59-20",
"\M2_D5_2019-09-06_10-56-50",
"\M2_D6_2019-09-09_11-21-57",
"\M2_D7_2019-09-10_10-32-19",
"\M2_D8_2019-09-11_11-07-32",
"\M2_D9_2019-09-12_10-49-46",
"\M2_D10_2019-09-13_10-56-48",
"\M2_D11_2019-09-16_10-58-57",
"\M2_D12_2019-09-17_11-12-37",
"\M2_D13_2019-09-19_11-03-31",
"\M2_D14_2019-09-20_10-52-16",
"\M2_D15_2019-09-23_12-37-09",
"\M2_D16_2019-09-24_12-26-35",
"\M2_D17_2019-09-25_12-39-02",
#"\M2_D18_2019-09-26_12-48-45", # this has a key error when it comes to clusters, looks like a bug
"\M2_D19_2019-09-27_12-42-16",
"\M2_D20_2019-09-30_12-47-48",
"\M2_D21_2019-10-01_13-00-22",
"\M2_D22_2019-10-02_12-58-13",
"\M2_D23_2019-10-03_12-32-34",
"\M2_D24_2019-10-04_13-10-55",
"\M2_D25_2019-10-07_12-40-24",
"\M2_D26_2019-10-08_13-20-16",
"\M2_D27_2019-10-09_12-34-23",
"\M2_D28_2019-10-10_12-53-59",
"\M2_D29normal_2019-10-11_13-33-11",
"\M2_D30_2019-10-12_12-45-03",
"\M2_D31_2019-10-13_12-13-33",
"\M2_D32_2019-10-14_13-04-08",
"\M2_D33_2019-10-15_13-00-01",
"\M2_D34_2019-10-16_10-02-20"]
return paths
def M2_cue_days():
cue_days = [0,0,0,0,0,0,0,1,1,1,
1,1,1,1,1,1,0,0,0,
0,1,1,1,1,1,1,1,1,1,
1,1,1,1]
return cue_days
def M4_paths():
paths = ['\M4_D1_2019-09-16_13-53-05',
'\M4_D2_2019-09-17_13-50-21',
'\M4_D3_2019-09-19_14-04-42',
'\M4_D4_2019-09-20_13-51-59',
'\M4_D5_2019-09-23_13-49-47',
'\M4_D6_2019-09-24_13-36-35',
'\M4_D7_2019-09-25_13-49-33',
'\M4_D8_2019-09-26_13-54-15',
'\M4_D9_2019-09-27_13-50-04',
'\M4_D10_2019-09-30_13-55-02',
'\M4_D11_2019-10-01_14-04-47',
'\M4_D12_2019-10-02_14-05-11',
'\M4_D13_2019-10-03_13-40-01',
'\M4_D14_2019-10-04_14-19-43',
'\M4_D15_2019-10-07_13-47-15',
'\M4_D16_2019-10-08_14-29-57',
'\M4_D17_2019-10-09_13-43-50',
'\M4_D18_2019-10-10_13-59-45',
'\M4_D19_2019-10-11_14-10-01',
#'\M4_D20_2019-10-12_13-54-05',
'\M4_D21_2019-10-13_13-18-23',
'\M4_D22_2019-10-14_14-17-59',
'\M4_D23_2019-10-15_14-09-16',
'\M4_D24_2019-10-16_10-39-56']
return paths
def M4_cue_days():
cue_days = [0,0,0,0,0,0,0,0,0,0,
1,1,1,1,1,1,1,1,1,
1,1,1,1]
return cue_days
def M3_paths():
paths = ['\M3_D1_2019-09-16_13-21-28',
'\M3_D2_2019-09-17_13-18-24',
'\M3_D3_2019-09-19_13-31-52',
'\M3_D4_2019-09-20_13-19-23',
'\M3_D5_2019-09-23_13-15-49',
'\M3_D6_2019-09-24_13-02-18',
#'\M3_D7_2019-09-25_13-15-32',
'\M3_D8_2019-09-26_13-22-08',
'\M3_D9_2019-09-27_13-16-35',
'\M3_D10_2019-09-30_13-22-03',
'\M3_D11_2019-10-01_13-32-24',
'\M3_D12_2019-10-02_13-32-03',
'\M3_D13_2019-10-03_13-06-31',
'\M3_D14_2019-10-04_13-45-11',
#'\M3_D15_2019-10-07_13-15-41',
'\M3_D16_2019-10-08_13-55-42',
'\M3_D17_2019-10-09_13-10-44',
'\M3_D18_2019-10-10_13-29-22',
'\M3_D19_2019-10-11_13-39-32',
'\M3_D20_2019-10-12_13-20-58',
'\M3_D21_2019-10-13_12-47-15',
'\M3_D22_2019-10-14_13-47-13',
'\M3_D23_2019-10-15_13-37-58']
return paths
def M3_cue_days():
cue_days = [0,0,0,0,0,0,0,0,0,
0,0,0,0,0,1,1,1,1,
1,1,1]
return cue_days
def M5_paths():
paths = ['\M5_D1_2019-09-16_14-35-39,'
'\M5_D2_2019-09-17_14-31-14',
'\M5_D3_2019-09-19_14-38-45',
'\M5_D4_2019-09-20_14-40-51',
'\M5_D5_2019-09-23_14-26-28',
'\M5_D6_2019-09-24_14-11-32',
'\M5_D7_2019-09-25_14-26-45',
'\M5_D8_2019-09-26_14-28-19',
'\M5_D9_2019-09-27_14-23-19',
'\M5_D10_2019-09-30_14-28-51',
'\M5_D11_2019-10-01_14-37-43',
'\M5_D12_2019-10-02_14-40-06',
'\M5_D13_2019-10-03_14-14-36',
'\M5_D15_2019-10-07_14-19-54',
'\M5_D16_2019-10-08_15-03-46',
'\M5_D17_2019-10-09_13-43-50',
'\M5_D18_2019-10-10_14-32-46',
'\M5_D19_2019-10-11_14-44-20',
'\M5_D20_2019-10-12_14-29-19',
'\M5_D21_2019-10-13_13-49-42']
return paths
def M5_cue_days():
cue_days = [0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0]
return cue_days
def M1_junji_paths():
paths = ['\M1_D1_2019-11-11_13-42-44',
'\M1_D2_2019-11-12_13-26-39',
'\M1_D3_2019-11-13_12-57-21',
'\M1_D4_2019-11-14_13-18-45',
'\M1_D5_2019-11-15_13-48-31',
'\M1_D6_2019-11-18_13-24-08',
'\M1_D7_2019-11-19_12-52-13',
'\M1_D8_2019-11-20_10-27-59',
'\M1_D9_2019-11-21_13-22-58',
'\M1_D10_2019-11-22_13-17-12',
'\M1_D11_2019-11-25_13-37-58',
'\M1_D12_2019-11-26_14-00-41',
'\M1_D13_2019-11-27_13-34-37',
'\M1_D14_2019-11-28_13-38-49',
'\M1_D15_2019-11-29_14-46-00']
return paths
def M2_junji_paths():
paths = ['/M2_D1_2019-11-11_14-29-46',
'/M2_D2_2019-11-12_14-12-57',
'/M2_D3_2019-11-13_13-48-30',
'/M2_D4_2019-11-14_14-04-37',
'/M2_D5_2019-11-15_14-34-07',
'/M2_D6_2019-11-18_14-16-06',
'/M2_D7_2019-11-19_13-38-49',
#'/M2_D8_2019-11-20_11-14-41',
'/M2_D9_2019-11-21_14-08-09',
#'/M2_D10_2019-11-22_14-02-39',
'/M2_D11_2019-11-25_14-23-17',
'/M2_D12_2019-11-26_14-45-10',
'/M2_D13_2019-11-27_14-20-16',
'/M2_D14_2019-11-28_14-23-00',
'/M2_D15_2019-11-29_13-28-39',
'/M2_D16_2019-12-02_14-25-28',
'/M2_D17_2019-12-03_14-29-12',
'/M2_D18_2019-12-04_13-49-33',
'/M2_D19_2019-12-05_14-00-23']
return paths