Skip to content

Commit 08e87fa

Browse files
committed
fix queries for ONE3
1 parent cd66789 commit 08e87fa

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

examples/exploring_data/data_download.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,16 +142,18 @@
142142
]
143143
},
144144
{
145-
"metadata": {},
146145
"cell_type": "markdown",
146+
"metadata": {},
147147
"source": [
148148
"### Find recordings of a specific brain region\n",
149149
"If we are interested in a given brain region, we can use the `search_insertions` method to find all recordings associated with that region. For example, to find all recordings associated with the **Rhomboid Nucleus (RH)** region of the thalamus."
150150
]
151151
},
152152
{
153-
"metadata": {},
154153
"cell_type": "code",
154+
"execution_count": null,
155+
"metadata": {},
156+
"outputs": [],
155157
"source": [
156158
"# this is the query that yields the few recordings for the Rhomboid Nucleus (RH) region\n",
157159
"insertions_rh = one.search_insertions(atlas_acronym='RH', datasets='spikes.times.npy', project='brainwide')\n",
@@ -161,9 +163,7 @@
161163
"\n",
162164
"# the Allen brain regions parcellation is hierarchical, and searching for Thalamus will return all child Rhomboid Nucleus (RH) regions\n",
163165
"assert set(insertions_rh).issubset(set(insertions_th))\n"
164-
],
165-
"outputs": [],
166-
"execution_count": null
166+
]
167167
},
168168
{
169169
"cell_type": "markdown",
@@ -183,7 +183,7 @@
183183
"outputs": [],
184184
"source": [
185185
"# Find sessions that have spikes.times datasets\n",
186-
"sessions_with_spikes = one.search(project='brainwide', dataset='spikes.times')"
186+
"sessions_with_spikes = one.search(project='brainwide', datasets='spikes.times.npy')"
187187
]
188188
},
189189
{
@@ -253,7 +253,7 @@
253253
"outputs": [],
254254
"source": [
255255
"# Find an example session with trials data\n",
256-
"eid, *_ = one.search(project='brainwide', dataset='_ibl_trials.table.pqt')\n",
256+
"eid, *_ = one.search(project='brainwide', datasets='_ibl_trials.table.pqt')\n",
257257
"# List datasets associated with a session, in the alf collection\n",
258258
"datasets = one.list_datasets(eid, collection='alf*')\n",
259259
"\n",
@@ -375,7 +375,7 @@
375375
"lab_name = list(labs)[0]\n",
376376
"\n",
377377
"# Searching for RS sessions with specific lab name\n",
378-
"sessions_lab = one.search(dataset='spikes', lab=lab_name)"
378+
"sessions_lab = one.search(datasets='spikes', lab=lab_name)"
379379
]
380380
},
381381
{

examples/loading_data/loading_photometry_data.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"source": [
6262
"from one.api import ONE\n",
6363
"one = ONE()\n",
64-
"sessions = one.search(dataset='photometry.signal.pqt')\n",
64+
"sessions = one.search(datasets='photometry.signal.pqt')\n",
6565
"print(f'{len(sessions)} sessions with photometry data found')"
6666
]
6767
},
@@ -271,7 +271,7 @@
271271
"name": "python",
272272
"nbconvert_exporter": "python",
273273
"pygments_lexer": "ipython3",
274-
"version": "3.9.16"
274+
"version": "3.11.9"
275275
}
276276
},
277277
"nbformat": 4,

examples/loading_data/loading_widefield_data.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"source": [
8787
"from one.api import ONE\n",
8888
"one = ONE()\n",
89-
"sessions = one.search(dataset='widefieldU.images.npy')\n",
89+
"sessions = one.search(datasets='widefieldU.images.npy')\n",
9090
"print(f'{len(sessions)} sessions with widefield data found')"
9191
]
9292
},
@@ -224,7 +224,7 @@
224224
"name": "python",
225225
"nbconvert_exporter": "python",
226226
"pygments_lexer": "ipython3",
227-
"version": "3.9.16"
227+
"version": "3.11.9"
228228
}
229229
},
230230
"nbformat": 4,

0 commit comments

Comments
 (0)