41
41
'pet' : {'suffix' : 'pet' },
42
42
'roi' : {'datatype' : 'anat' , 'suffix' : 'roi' },
43
43
'sbref' : {'datatype' : 'func' , 'suffix' : 'sbref' , 'part' : ['mag' , None ]},
44
- 't1w' : {'datatype' : 'anat' , ' suffix' : 'T1w' , 'part' : [ 'mag' , None ] },
44
+ 't1w' : {'suffix' : 'T1w' },
45
45
't2w' : {'datatype' : 'anat' , 'suffix' : 'T2w' , 'part' : ['mag' , None ]},
46
46
'asl' : {'datatype' : 'perf' , 'suffix' : 'asl' },
47
47
}
@@ -251,8 +251,9 @@ def collect_data(
251
251
'return_type' : 'file' ,
252
252
'subject' : participant_label ,
253
253
'extension' : ['.nii' , '.nii.gz' ],
254
- 'session' : session_id or Query .OPTIONAL ,
255
254
}
255
+ if session_id is not None :
256
+ layout_get_kwargs ['session' ] = session_id
256
257
257
258
reserved_entities = [('subject' , participant_label ), ('session' , session_id )]
258
259
@@ -271,20 +272,10 @@ def collect_data(
271
272
# avoid clobbering layout.get
272
273
del layout_get_kwargs [entity ]
273
274
274
- if task :
275
- queries ['bold' ]['task' ] = task
276
-
277
- if echo :
278
- queries ['bold' ]['echo' ] = echo
279
-
280
275
subj_data = {
281
276
dtype : sorted (layout .get (** layout_get_kwargs , ** query )) for dtype , query in queries .items ()
282
277
}
283
278
284
- # Special case: multi-echo BOLD, grouping echos
285
- if group_echos and 'bold' in subj_data and any ('_echo-' in bold for bold in subj_data ['bold' ]):
286
- subj_data ['bold' ] = group_multiecho (subj_data ['bold' ])
287
-
288
279
return subj_data , layout
289
280
290
281
0 commit comments