Skip to content

Commit 2e6faa0

Browse files
committed
fix: address a bad connection in #52 that creeped up fixing #77 [skip ci]
1 parent 9f90e46 commit 2e6faa0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

sdcflows/workflows/fmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def init_fmap_wf(omp_nthreads, fmap_bspline, name='fmap_wf'):
9999

100100
workflow.connect([
101101
(inputnode, fmapmrg, [('fieldmap', 'in_files')]),
102-
(fmapmrg, applymsk, [('out_file', 'in_file')]),
102+
(fmapmrg, applymsk, [('out_avg', 'in_file')]),
103103
(magnitude_wf, applymsk, [('outputnode.fmap_mask', 'mask_file')]),
104104
(applymsk, fmap_postproc_wf, [('out_file', 'inputnode.fmap')]),
105105
(magnitude_wf, fmap_postproc_wf, [

sdcflows/workflows/gre.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ def init_magnitude_wf(omp_nthreads, name='magnitude_wf'):
6565
name='outputnode')
6666

6767
# Merge input magnitude images
68-
magmrg = pe.Node(IntraModalMerge(), name='magmrg')
68+
magmrg = pe.Node(IntraModalMerge(hmc=False, grand_mean_scaling=True),
69+
name='magmrg')
6970

7071
# de-gradient the fields ("bias/illumination artifact")
7172
n4_correct = pe.Node(ants.N4BiasFieldCorrection(dimension=3, copy_header=True),
@@ -75,7 +76,7 @@ def init_magnitude_wf(omp_nthreads, name='magnitude_wf'):
7576

7677
workflow.connect([
7778
(inputnode, magmrg, [('magnitude', 'in_files')]),
78-
(magmrg, n4_correct, [('out_file', 'input_image')]),
79+
(magmrg, n4_correct, [('out_avg', 'input_image')]),
7980
(n4_correct, bet, [('output_image', 'in_file')]),
8081
(bet, outputnode, [('mask_file', 'fmap_mask'),
8182
('out_file', 'fmap_ref'),

0 commit comments

Comments
 (0)