Skip to content

Commit 977c58b

Browse files
authored
Merge pull request #386 from int-brain-lab/pprojects
Pprojects
2 parents 96c3c60 + f667bd3 commit 977c58b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
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

0 commit comments

Comments
 (0)