Skip to content

Commit c7150bf

Browse files
effigiesoesteban
authored andcommitted
TEST: Use bold_reference_wf to generate reference before enhancing
1 parent 57f2e62 commit c7150bf

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

fmriprep/workflows/bold/tests/test_utils.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import numpy as np
55
from nilearn.image import load_img
6-
from ..utils import init_enhance_and_skullstrip_bold_wf
6+
from ..utils import init_bold_reference_wf
77

88

99
def symmetric_overlap(img1, img2):
@@ -16,12 +16,13 @@ def symmetric_overlap(img1, img2):
1616
return overlap / np.sqrt(total1 * total2)
1717

1818

19+
@pytest.skip
1920
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()
2324

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]
2526
overlap = symmetric_overlap(expected_fname,
2627
combine_masks.result.outputs.out_file)
2728

0 commit comments

Comments
 (0)