Skip to content

Commit 8c8b3d7

Browse files
committed
data -> dataset
1 parent 48acb75 commit 8c8b3d7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

examples/exploring_data/data_download.ipynb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
"outputs": [],
160160
"source": [
161161
"# Find sessions that have spikes.times datasets\n",
162-
"sessions_with_spikes = one.search(project='brainwide', data='spikes.times')"
162+
"sessions_with_spikes = one.search(project='brainwide', dataset='spikes.times')"
163163
]
164164
},
165165
{
@@ -209,6 +209,7 @@
209209
"insertions_rep_site = one.alyx.rest('insertions', 'list', django=ins_str_query)\n",
210210
"\n",
211211
"# To return to the full cache containing an index of all IBL experiments\n",
212+
"%%capture\n",
212213
"ONE.cache_clear()\n",
213214
"one = ONE(base_url='https://openalyx.internationalbrainlab.org')"
214215
]
@@ -228,7 +229,7 @@
228229
"outputs": [],
229230
"source": [
230231
"# Find an example session with data\n",
231-
"eid, *_ = one.search(project='brainwide', data='alf/')\n",
232+
"eid, *_ = one.search(project='brainwide', dataset='alf/')\n",
232233
"# List datasets associated with a session, in the alf collection\n",
233234
"datasets = one.list_datasets(eid, collection='alf*')\n",
234235
"\n",
@@ -254,7 +255,7 @@
254255
"source": [
255256
"# Find an example session with spike data\n",
256257
"# Note: Restricting by task and project makes searching for data much quicker\n",
257-
"eid, *_ = one.search(project='brainwide', data='spikes', task='ephys')\n",
258+
"eid, *_ = one.search(project='brainwide', dataset='spikes', task='ephys')\n",
258259
"\n",
259260
"# Data for each probe insertion are stored in the alf/probeXX folder.\n",
260261
"datasets = one.list_datasets(eid, collection='alf/probe*')\n",
@@ -319,6 +320,7 @@
319320
"metadata": {},
320321
"outputs": [],
321322
"source": [
323+
"%%capture\n",
322324
"one.load_cache(tag='2022_Q2_IBL_et_al_RepeatedSite')\n",
323325
"sessions_lab = one.search(lab='mrsicflogellab')"
324326
]
@@ -349,7 +351,7 @@
349351
"lab_name = list(labs)[0]\n",
350352
"\n",
351353
"# Searching for RS sessions with specific lab name\n",
352-
"sessions_lab = one.search(data='spikes', lab=lab_name)"
354+
"sessions_lab = one.search(dataset='spikes', lab=lab_name)"
353355
]
354356
},
355357
{

0 commit comments

Comments
 (0)