4141 'pet' : {'suffix' : 'pet' },
4242 'roi' : {'datatype' : 'anat' , 'suffix' : 'roi' },
4343 'sbref' : {'datatype' : 'func' , 'suffix' : 'sbref' , 'part' : ['mag' , None ]},
44- 't1w' : {'datatype' : 'anat' , ' suffix' : 'T1w' , 'part' : [ 'mag' , None ] },
44+ 't1w' : {'suffix' : 'T1w' },
4545 't2w' : {'datatype' : 'anat' , 'suffix' : 'T2w' , 'part' : ['mag' , None ]},
4646 'asl' : {'datatype' : 'perf' , 'suffix' : 'asl' },
4747}
@@ -251,8 +251,9 @@ def collect_data(
251251 'return_type' : 'file' ,
252252 'subject' : participant_label ,
253253 'extension' : ['.nii' , '.nii.gz' ],
254- 'session' : session_id or Query .OPTIONAL ,
255254 }
255+ if session_id is not None :
256+ layout_get_kwargs ['session' ] = session_id
256257
257258 reserved_entities = [('subject' , participant_label ), ('session' , session_id )]
258259
@@ -271,20 +272,10 @@ def collect_data(
271272 # avoid clobbering layout.get
272273 del layout_get_kwargs [entity ]
273274
274- if task :
275- queries ['bold' ]['task' ] = task
276-
277- if echo :
278- queries ['bold' ]['echo' ] = echo
279-
280275 subj_data = {
281276 dtype : sorted (layout .get (** layout_get_kwargs , ** query )) for dtype , query in queries .items ()
282277 }
283278
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-
288279 return subj_data , layout
289280
290281
0 commit comments