@@ -326,12 +326,15 @@ def test_wrangler_filter(tmpdir, name, skeleton, estimations):
326
326
('phasediff' , phasediff , 3 ),
327
327
],
328
328
)
329
- @pytest .mark .parametrize ("session, estimations" , [
330
- ("01" , 1 ),
331
- ("02" , 1 ),
332
- ("03" , 1 ),
333
- (None , None ),
334
- ])
329
+ @pytest .mark .parametrize (
330
+ "session, estimations" ,
331
+ [
332
+ ("01" , 1 ),
333
+ ("02" , 1 ),
334
+ ("03" , 1 ),
335
+ (None , None ),
336
+ ],
337
+ )
335
338
def test_wrangler_URIs (tmpdir , name , skeleton , session , estimations , total_estimations ):
336
339
bids_dir = str (tmpdir / name )
337
340
generate_bids_skeleton (bids_dir , skeleton )
@@ -477,19 +480,27 @@ def test_fieldmapless(tmp_path):
477
480
self_pepolar_metadata = {
478
481
** bold ["metadata" ],
479
482
"B0FieldIdentifier" : "pepolar_fmap" ,
480
- "B0FieldSource" : "pepolar_fmap"
483
+ "B0FieldSource" : "pepolar_fmap" ,
481
484
}
482
485
483
486
spec = {
484
487
"01" : {
485
488
"anat" : [T1w ],
486
- "func" : [{"run" : i , ** bold , "metadata" : {** self_pepolar_metadata , "PhaseEncodingDirection" : pedir }, } for i , pedir in zip (range (1 , 3 ), ["j" , "j-" ])],
489
+ "func" : [
490
+ {
491
+ "run" : i ,
492
+ ** bold ,
493
+ "metadata" : {** self_pepolar_metadata , "PhaseEncodingDirection" : pedir },
494
+ }
495
+ for i , pedir in zip (range (1 , 3 ), ["j" , "j-" ])
496
+ ],
487
497
},
488
498
}
489
499
generate_bids_skeleton (bids_dir , spec )
490
500
layout = gen_layout (bids_dir )
491
- est = find_estimators (layout = layout , subject = "01" , fmapless = True , force_fmapless = True )
492
- assert len (est ) == 2
493
- assert len (est [0 ].sources ) == 2
501
+ ests = find_estimators (layout = layout , subject = "01" , fmapless = True , force_fmapless = True )
502
+ assert len (ests ) == 3
503
+ for est in ests :
504
+ assert len (est .sources ) == 2
494
505
clear_registry ()
495
506
rmtree (bids_dir )
0 commit comments