Skip to content

Commit f667bd3

Browse files
committed
move to another repo - if no pipeline returns task_type for extraction
1 parent 3f76faf commit f667bd3

File tree

3 files changed

+7
-96
lines changed

3 files changed

+7
-96
lines changed

ibllib/io/extractors/base.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,14 @@ def get_pipeline(session_path):
220220

221221

222222
def _get_pipeline_from_task_type(stype):
223+
"""
224+
Returns the pipeline from the task type. Some tasks types directly define the pipeline
225+
:param stype: session_type or task extractor type
226+
:return:
227+
"""
223228
if 'ephys' in stype:
224229
return 'ephys'
225230
elif stype in ['habituation', 'training', 'biased', 'biased_opto']:
226231
return 'training'
232+
else:
233+
return stype

ibllib/projects/__init__.py

Whitespace-only changes.

ibllib/projects/ephys_passive_opto.py

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)