@@ -74,13 +74,13 @@ def gen_layout(bids_dir, database_dir=None):
74
74
"EchoTime" : 1.2 ,
75
75
"PhaseEncodingDirection" : "j-" ,
76
76
"TotalReadoutTime" : 0.8 ,
77
- "IntendedFor" : "ses-02/func/sub-01_ses-02_task-rest_bold.nii.gz"
77
+ "IntendedFor" : "bids::sub-01/ ses-02/func/sub-01_ses-02_task-rest_bold.nii.gz"
78
78
}},
79
79
{"suffix" : "epi" , "dir" : "PA" , "metadata" : {
80
80
"EchoTime" : 1.2 ,
81
81
"PhaseEncodingDirection" : "j" ,
82
82
"TotalReadoutTime" : 0.8 ,
83
- "IntendedFor" : "ses-02/func/sub-01_ses-02_task-rest_bold.nii.gz"
83
+ "IntendedFor" : "bids::sub-01/ ses-02/func/sub-01_ses-02_task-rest_bold.nii.gz"
84
84
}}
85
85
],
86
86
"func" : [
@@ -103,13 +103,13 @@ def gen_layout(bids_dir, database_dir=None):
103
103
"EchoTime" : 1.2 ,
104
104
"PhaseEncodingDirection" : "j-" ,
105
105
"TotalReadoutTime" : 0.8 ,
106
- "IntendedFor" : "ses-03/func/sub-01_ses-03_task-rest_bold.nii.gz"
106
+ "IntendedFor" : "bids::sub-01/ ses-03/func/sub-01_ses-03_task-rest_bold.nii.gz"
107
107
}},
108
108
{"suffix" : "epi" , "dir" : "PA" , "metadata" : {
109
109
"EchoTime" : 1.2 ,
110
110
"PhaseEncodingDirection" : "j" ,
111
111
"TotalReadoutTime" : 0.8 ,
112
- "IntendedFor" : "ses-03/func/sub-01_ses-03_task-rest_bold.nii.gz"
112
+ "IntendedFor" : "bids::sub-01/ ses-03/func/sub-01_ses-03_task-rest_bold.nii.gz"
113
113
}}
114
114
],
115
115
"func" : [
@@ -203,7 +203,7 @@ def gen_layout(bids_dir, database_dir=None):
203
203
"metadata" : {
204
204
"EchoTime1" : 1.2 ,
205
205
"EchoTime2" : 1.4 ,
206
- "IntendedFor" : "ses-02/func/sub-01_ses-02_task-rest_bold.nii.gz"
206
+ "IntendedFor" : "bids::sub-01/ ses-02/func/sub-01_ses-02_task-rest_bold.nii.gz"
207
207
}
208
208
},
209
209
{"suffix" : "magnitude1" , "metadata" : {"EchoTime" : 1.2 }},
@@ -230,7 +230,7 @@ def gen_layout(bids_dir, database_dir=None):
230
230
"metadata" : {
231
231
"EchoTime1" : 1.2 ,
232
232
"EchoTime2" : 1.4 ,
233
- "IntendedFor" : "ses-03/func/sub-01_ses-03_task-rest_bold.nii.gz"
233
+ "IntendedFor" : "bids::sub-01/ ses-03/func/sub-01_ses-03_task-rest_bold.nii.gz"
234
234
}
235
235
},
236
236
{"suffix" : "magnitude1" , "metadata" : {"EchoTime" : 1.2 }},
@@ -282,6 +282,17 @@ def test_wrangler_filter(tmpdir, name, skeleton, estimations):
282
282
assert len (est ) == estimations
283
283
clear_registry ()
284
284
285
+ @pytest .mark .parametrize ('name,skeleton,estimations' , [
286
+ ('pepolar' , pepolar , 3 ),
287
+ ('phasediff' , phasediff , 3 ),
288
+ ])
289
+ def test_wrangler_URIs (tmpdir , name , skeleton , estimations ):
290
+ bids_dir = str (tmpdir / name )
291
+ generate_bids_skeleton (bids_dir , skeleton )
292
+ layout = gen_layout (bids_dir )
293
+ est = find_estimators (layout = layout , subject = '01' )
294
+ assert len (est ) == estimations
295
+ clear_registry ()
285
296
286
297
def test_single_reverse_pedir (tmp_path ):
287
298
bids_dir = tmp_path / "bids"
0 commit comments