Skip to content

Commit 7fbcef7

Browse files
committed
clean up notebooks
1 parent da2b7e8 commit 7fbcef7

9 files changed

+388
-486
lines changed

examples/loading_data/loading_ephys_data.ipynb

Lines changed: 20 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,21 @@
88
"# Loading Ephys Data (AP and LFP band)"
99
]
1010
},
11+
{
12+
"cell_type": "code",
13+
"execution_count": null,
14+
"id": "81b9fe17",
15+
"metadata": {
16+
"nbsphinx": "hidden"
17+
},
18+
"outputs": [],
19+
"source": [
20+
"# Turn off logging, this is a hidden cell on docs page\n",
21+
"import logging\n",
22+
"logger = logging.getLogger('ibllib')\n",
23+
"logger.setLevel(logging.CRITICAL)"
24+
]
25+
},
1126
{
1227
"cell_type": "markdown",
1328
"id": "d82e6bf7",
@@ -48,14 +63,7 @@
4863
"cell_type": "code",
4964
"execution_count": null,
5065
"id": "3368df3e",
51-
"metadata": {
52-
"execution": {
53-
"iopub.execute_input": "2022-02-02T10:31:54.250698Z",
54-
"iopub.status.busy": "2022-02-02T10:31:54.250698Z",
55-
"iopub.status.idle": "2022-02-02T10:31:57.172533Z",
56-
"shell.execute_reply": "2022-02-02T10:31:57.172533Z"
57-
}
58-
},
66+
"metadata": {},
5967
"outputs": [],
6068
"source": [
6169
"from one.api import ONE\n",
@@ -78,14 +86,7 @@
7886
"cell_type": "code",
7987
"execution_count": null,
8088
"id": "1f973b85",
81-
"metadata": {
82-
"execution": {
83-
"iopub.execute_input": "2022-02-02T10:31:57.187782Z",
84-
"iopub.status.busy": "2022-02-02T10:31:57.172533Z",
85-
"iopub.status.idle": "2022-02-02T10:31:57.435331Z",
86-
"shell.execute_reply": "2022-02-02T10:31:57.435331Z"
87-
}
88-
},
89+
"metadata": {},
8990
"outputs": [],
9091
"source": [
9192
"lf_psd = one.load_object(eid, f'ephysSpectralDensityLF', collection=f'raw_ephys_data/{name}')"
@@ -132,14 +133,7 @@
132133
"cell_type": "code",
133134
"execution_count": null,
134135
"id": "fd36e0d0",
135-
"metadata": {
136-
"execution": {
137-
"iopub.execute_input": "2022-02-02T10:31:57.435331Z",
138-
"iopub.status.busy": "2022-02-02T10:31:57.435331Z",
139-
"iopub.status.idle": "2022-02-02T10:31:57.473192Z",
140-
"shell.execute_reply": "2022-02-02T10:31:57.473192Z"
141-
}
142-
},
136+
"metadata": {},
143137
"outputs": [],
144138
"source": [
145139
"# The objects ephysTimeRms and ephysSpectralDensity contain data for all channels on the probe including the channel used\n",
@@ -164,14 +158,7 @@
164158
"cell_type": "code",
165159
"execution_count": null,
166160
"id": "0cf30d8c",
167-
"metadata": {
168-
"execution": {
169-
"iopub.execute_input": "2022-02-02T10:31:57.473192Z",
170-
"iopub.status.busy": "2022-02-02T10:31:57.473192Z",
171-
"iopub.status.idle": "2022-02-02T10:31:57.488822Z",
172-
"shell.execute_reply": "2022-02-02T10:31:57.488822Z"
173-
}
174-
},
161+
"metadata": {},
175162
"outputs": [],
176163
"source": [
177164
"import numpy as np\n",
@@ -196,14 +183,7 @@
196183
"cell_type": "code",
197184
"execution_count": null,
198185
"id": "67cac014",
199-
"metadata": {
200-
"execution": {
201-
"iopub.execute_input": "2022-02-02T10:31:57.488822Z",
202-
"iopub.status.busy": "2022-02-02T10:31:57.488822Z",
203-
"iopub.status.idle": "2022-02-02T10:31:58.275398Z",
204-
"shell.execute_reply": "2022-02-02T10:31:58.275398Z"
205-
}
206-
},
186+
"metadata": {},
207187
"outputs": [],
208188
"source": [
209189
"from brainbox.ephys_plots import image_lfp_spectrum_plot\n",

examples/loading_data/loading_passive_data.ipynb

Lines changed: 19 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,21 @@
88
"# Loading Passive Data"
99
]
1010
},
11+
{
12+
"cell_type": "code",
13+
"execution_count": null,
14+
"id": "6b2485da",
15+
"metadata": {
16+
"nbsphinx": "hidden"
17+
},
18+
"outputs": [],
19+
"source": [
20+
"# Turn off logging, this is a hidden cell on docs page\n",
21+
"import logging\n",
22+
"logger = logging.getLogger('ibllib')\n",
23+
"logger.setLevel(logging.CRITICAL)"
24+
]
25+
},
1126
{
1227
"cell_type": "markdown",
1328
"id": "16345774",
@@ -52,14 +67,7 @@
5267
"cell_type": "code",
5368
"execution_count": null,
5469
"id": "2b807296",
55-
"metadata": {
56-
"execution": {
57-
"iopub.execute_input": "2022-02-02T10:32:00.626724Z",
58-
"iopub.status.busy": "2022-02-02T10:32:00.626724Z",
59-
"iopub.status.idle": "2022-02-02T10:32:03.502094Z",
60-
"shell.execute_reply": "2022-02-02T10:32:03.502094Z"
61-
}
62-
},
70+
"metadata": {},
6371
"outputs": [],
6472
"source": [
6573
"from one.api import ONE\n",
@@ -82,14 +90,7 @@
8290
"cell_type": "code",
8391
"execution_count": null,
8492
"id": "811e3533",
85-
"metadata": {
86-
"execution": {
87-
"iopub.execute_input": "2022-02-02T10:32:03.502094Z",
88-
"iopub.status.busy": "2022-02-02T10:32:03.502094Z",
89-
"iopub.status.idle": "2022-02-02T10:32:04.800485Z",
90-
"shell.execute_reply": "2022-02-02T10:32:04.800485Z"
91-
}
92-
},
93+
"metadata": {},
9394
"outputs": [],
9495
"source": [
9596
"from brainbox.io.one import load_passive_rfmap\n",
@@ -109,14 +110,7 @@
109110
"cell_type": "code",
110111
"execution_count": null,
111112
"id": "c65f1ca8",
112-
"metadata": {
113-
"execution": {
114-
"iopub.execute_input": "2022-02-02T10:32:04.800485Z",
115-
"iopub.status.busy": "2022-02-02T10:32:04.800485Z",
116-
"iopub.status.idle": "2022-02-02T10:32:05.171359Z",
117-
"shell.execute_reply": "2022-02-02T10:32:05.171359Z"
118-
}
119-
},
113+
"metadata": {},
120114
"outputs": [],
121115
"source": [
122116
"# Load visual stimulus task replay events\n",
@@ -167,14 +161,7 @@
167161
"cell_type": "code",
168162
"execution_count": null,
169163
"id": "7552f7c5",
170-
"metadata": {
171-
"execution": {
172-
"iopub.execute_input": "2022-02-02T10:32:05.177394Z",
173-
"iopub.status.busy": "2022-02-02T10:32:05.177394Z",
174-
"iopub.status.idle": "2022-02-02T10:32:09.597130Z",
175-
"shell.execute_reply": "2022-02-02T10:32:09.597130Z"
176-
}
177-
},
164+
"metadata": {},
178165
"outputs": [],
179166
"source": [
180167
"# Find first probe insertion for session\n",

0 commit comments

Comments
 (0)