diff --git a/actions/identify-neurons/data/00-identify-neurons.html b/actions/identify-neurons/data/00-identify-neurons.html index 46b866e94..8fd60af9f 100644 --- a/actions/identify-neurons/data/00-identify-neurons.html +++ b/actions/identify-neurons/data/00-identify-neurons.html @@ -13281,14 +13281,14 @@ div#notebook {
skip_actions = [
'1849-270219-1',
'1849-260219-2',
'1834-250219-1',
- '1834-230219-1'
+ '1834-230219-1',
'1833-050619-4'
]
sessions = []
@@ -13382,7 +13382,7 @@ div#notebook {
sessions.query('stimulated and frequency!=30')
@@ -13398,7 +13398,7 @@ div#notebook {
- Out[10]:
+ Out[84]:
@@ -13695,7 +13695,7 @@ div#notebook {
stim i
- 66
+ 65
1833-200619-2
False
1833
@@ -13708,7 +13708,7 @@ div#notebook {
stim i
- 75
+ 74
1833-290519-2
False
1833
@@ -13721,7 +13721,7 @@ div#notebook {
stim i
- 77
+ 76
1839-120619-2
False
1839
@@ -13734,7 +13734,7 @@ div#notebook {
stim i
- 82
+ 81
1834-110319-5
False
1834
@@ -13747,7 +13747,7 @@ div#notebook {
stim i
- 83
+ 82
1839-200619-2
False
1839
@@ -13760,7 +13760,7 @@ div#notebook {
stim i
- 87
+ 86
1833-010719-2
False
1833
@@ -13785,7 +13785,177 @@ div#notebook {
-In [11]:
+In [85]:
+
+
+sessions['date'] = sessions.apply(lambda x: x.action.split('-')[1], axis=1)
+sessions['entity_date'] = sessions.apply(lambda x: '-'.join(x.action.split('-')[:2]), axis=1)
+
+
+
+
+
+
+
+
+
+In [86]:
+
+
+sessions['Hz11'] = sessions.frequency==11
+sessions['Hz30'] = sessions.frequency==30
+
+
+
+
+
+
+
+
+
+In [87]:
+
+
+for entity_date, day in sessions.groupby('entity_date'):
+ day = day.sort_values('session')
+ for (_,now), (_,after) in zip(day.iterrows(), day.iloc[1:,:].iterrows()):
+ if after.frequency == 11:
+ if now.baseline:
+# print(now.name)
+ sessions.loc[now.name, 'Hz11'] = True
+ if after.frequency == 30:
+ if now.baseline:
+ sessions.loc[now.name, 'Hz30'] = True
+
+
+
+
+
+
+
+
+
+In [93]:
+
+
+sessions.query('baseline and not Hz11 and not Hz30')
+
+
+
+
+
+
+
+
+
+
+
+
+ Out[93]:
+
+
+
+
+
+
+
+
+
+
+
+
+
+In [95]:
sessions.to_csv(output / 'sessions.csv', index=False)
@@ -13798,7 +13968,7 @@ div#notebook {
-In [ ]:
+In [37]:
all_non_identified_units = []
@@ -13820,7 +13990,7 @@ div#notebook {
-In [ ]:
+In [38]:
all_non_identified_units.to_csv(output / 'all_non_identified_units.csv', index=False)
@@ -13890,10 +14060,10 @@ div#notebook {
-
+