Skip to content

Commit 5509542

Browse files
committed
make local_paths in init
1 parent 4965ca5 commit 5509542

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ibllib/oneibl/data_handlers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ def __init__(self, session_path, signatures, one=None):
146146
else:
147147
self.globus.add_endpoint(f'flatiron_{self.lab}', alyx=self.one.alyx)
148148

149+
self.local_paths = []
150+
149151
def setUp(self):
150152
"""
151153
Function to download necessary data to run tasks using globus-sdk
@@ -174,7 +176,6 @@ def setUp(self):
174176

175177
target_paths = []
176178
source_paths = []
177-
self.local_paths = []
178179
for i, d in df.iterrows():
179180
sess_path = Path(rel_sess_path).joinpath(d['rel_path'])
180181
full_local_path = Path(self.globus.endpoints['local']['root_path']).joinpath(sess_path)
@@ -268,6 +269,8 @@ def __init__(self, task, session_path, signature, one=None):
268269
else:
269270
self.globus.add_endpoint(f'flatiron_{self.lab}', alyx=self.one.alyx)
270271

272+
self.local_paths = []
273+
271274
def setUp(self):
272275
"""
273276
Function to download necessary data to run tasks using AWS boto3

0 commit comments

Comments
 (0)