File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
fmriprep/workflows/bold/tests Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 3
3
4
4
import numpy as np
5
5
from nilearn .image import load_img
6
- from ..utils import init_enhance_and_skullstrip_bold_wf
6
+ from ..utils import init_bold_reference_wf
7
7
8
8
9
9
def symmetric_overlap (img1 , img2 ):
@@ -16,12 +16,13 @@ def symmetric_overlap(img1, img2):
16
16
return overlap / np .sqrt (total1 * total2 )
17
17
18
18
19
+ @pytest .skip
19
20
def test_masking (input_fname , expected_fname ):
20
- enhance_and_skullstrip_bold_wf = init_enhance_and_skullstrip_bold_wf ( )
21
- enhance_and_skullstrip_bold_wf .inputs .inputnode .in_file = input_fname
22
- res = enhance_and_skullstrip_bold_wf .run ()
21
+ bold_reference_wf = init_bold_reference_wf ( enhance_t2 = True )
22
+ bold_reference_wf .inputs .inputnode .bold_file = input_fname
23
+ res = bold_reference_wf .run ()
23
24
24
- combine_masks = [node for node in res .nodes if node .name == 'combine_masks' ][0 ]
25
+ combine_masks = [node for node in res .nodes if node .name . endswith ( 'combine_masks' ) ][0 ]
25
26
overlap = symmetric_overlap (expected_fname ,
26
27
combine_masks .result .outputs .out_file )
27
28
You can’t perform that action at this time.
0 commit comments