Skip to content

Commit 2387d35

Browse files
authored
Merge pull request #455 from int-brain-lab/cortex_lab_fix
account for cortex lab
2 parents 777f044 + 0472cb8 commit 2387d35

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ibllib/oneibl/data_handlers.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,10 @@ def setUp(self):
147147
:return:
148148
"""
149149
if self.lab == 'cortexlab':
150-
df = super().getData(one=ONE(base_url='https://alyx.internationalbrainlab.org'))
150+
one = ONE(base_url='https://alyx.internationalbrainlab.org')
151+
df = super().getData(one=one)
151152
else:
153+
one = self.one
152154
df = super().getData()
153155

154156
if len(df) == 0:
@@ -173,9 +175,9 @@ def setUp(self):
173175
full_local_path = Path(self.globus.endpoints['local']['root_path']).joinpath(sess_path)
174176
if not full_local_path.exists():
175177

176-
if self.one._index_type() is int:
178+
if one._index_type() is int:
177179
uuid = np2str(np.r_[i[0], i[1]])
178-
elif self.one._index_type() is str:
180+
elif one._index_type() is str:
179181
uuid = i
180182

181183
self.local_paths.append(full_local_path)

0 commit comments

Comments
 (0)