@@ -15,7 +15,7 @@ def test_split_epi_lists(bids_layouts, tmpdir):
15
15
16
16
layout = bids_layouts ['testdata' ]
17
17
18
- bold = layout .get (suffix = 'bold' , dir = 'LR' , direction = 'LR' ,
18
+ bold = layout .get (suffix = 'bold' , direction = 'LR' ,
19
19
extension = ['.nii.gz' , '.nii' ])[0 ]
20
20
epidata = layout .get (suffix = 'epi' , desc = None , extension = ['.nii.gz' , '.nii' ])
21
21
@@ -47,9 +47,9 @@ def test_prepare_epi_wf0(bids_layouts, tmpdir):
47
47
48
48
layout = bids_layouts ['testdata' ]
49
49
50
- bold = layout .get (suffix = 'bold' , dir = 'LR' , direction = 'LR' ,
50
+ bold = layout .get (suffix = 'bold' , direction = 'LR' ,
51
51
extension = ['.nii.gz' , '.nii' ])[0 ]
52
- epidata = layout .get (suffix = 'epi' , dir = 'LR' , direction = 'LR' ,
52
+ epidata = layout .get (suffix = 'epi' , direction = 'LR' ,
53
53
desc = None , extension = ['.nii.gz' , '.nii' ])
54
54
55
55
with pytest .raises (ValueError ):
@@ -64,9 +64,9 @@ def test_prepare_epi_wf1(bids_layouts, tmpdir):
64
64
65
65
layout = bids_layouts ['testdata' ]
66
66
67
- bold = layout .get (suffix = 'bold' , dir = 'LR' , direction = 'LR' ,
67
+ bold = layout .get (suffix = 'bold' , direction = 'LR' ,
68
68
extension = ['.nii.gz' , '.nii' ])[0 ]
69
- boldref = layout .get (suffix = 'boldref' , dir = 'LR' , direction = 'LR' ,
69
+ boldref = layout .get (suffix = 'boldref' , direction = 'LR' ,
70
70
extension = ['.nii.gz' , '.nii' ])[0 ]
71
71
epidata = layout .get (suffix = 'epi' , desc = None , extension = ['.nii.gz' , '.nii' ])
72
72
@@ -88,11 +88,11 @@ def test_prepare_epi_wf2(bids_layouts, tmpdir):
88
88
89
89
layout = bids_layouts ['testdata' ]
90
90
91
- bold = layout .get (suffix = 'bold' , dir = 'LR' , direction = 'LR' ,
91
+ bold = layout .get (suffix = 'bold' , direction = 'LR' ,
92
92
extension = ['.nii.gz' , '.nii' ])[0 ]
93
- boldref = layout .get (suffix = 'boldref' , dir = 'LR' , direction = 'LR' ,
93
+ boldref = layout .get (suffix = 'boldref' , direction = 'LR' ,
94
94
extension = ['.nii.gz' , '.nii' ])[0 ]
95
- epidata = layout .get (suffix = 'epi' , dir = 'RL' , direction = 'RL' ,
95
+ epidata = layout .get (suffix = 'epi' , direction = 'RL' ,
96
96
desc = None , extension = ['.nii.gz' , '.nii' ])
97
97
98
98
matched_pe = check_pes ([(im .path , im .get_metadata ()['PhaseEncodingDirection' ])
@@ -116,15 +116,15 @@ def test_pepolar_wf1(bids_layouts, output_path, dataset, workdir):
116
116
layout = bids_layouts [dataset ]
117
117
118
118
if dataset == 'testdata' :
119
- bold = layout .get (suffix = 'bold' , dir = 'LR' , direction = 'LR' ,
119
+ bold = layout .get (suffix = 'bold' , direction = 'LR' ,
120
120
extension = ['.nii.gz' , '.nii' ])[0 ]
121
- boldref = layout .get (suffix = 'boldref' , dir = 'LR' , direction = 'LR' , desc = 'brain' ,
121
+ boldref = layout .get (suffix = 'boldref' , direction = 'LR' , desc = 'brain' ,
122
122
extension = ['.nii.gz' , '.nii' ])[0 ]
123
+ epidata = layout .get (suffix = 'epi' , desc = None , extension = ['.nii.gz' , '.nii' ])
123
124
elif dataset == 'ds001600' :
124
125
bold = layout .get (suffix = 'bold' , acquisition = 'AP' ,
125
126
extension = ['.nii.gz' , '.nii' ])[0 ]
126
-
127
- epidata = layout .get (suffix = 'epi' , desc = None , extension = ['.nii.gz' , '.nii' ])
127
+ epidata = layout .get (suffix = 'epi' , extension = ['.nii.gz' , '.nii' ])
128
128
129
129
matched_pe = check_pes ([(im .path , im .get_metadata ()['PhaseEncodingDirection' ])
130
130
for im in epidata ], bold .get_metadata ()['PhaseEncodingDirection' ])
0 commit comments