Skip to content

Commit

Permalink
fix: address a bad connection in #52 that creeped up fixing #77 [skip…
Browse files Browse the repository at this point in the history
… ci]
  • Loading branch information
oesteban committed Dec 18, 2019
1 parent 9f90e46 commit 2e6faa0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdcflows/workflows/fmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def init_fmap_wf(omp_nthreads, fmap_bspline, name='fmap_wf'):

workflow.connect([
(inputnode, fmapmrg, [('fieldmap', 'in_files')]),
(fmapmrg, applymsk, [('out_file', 'in_file')]),
(fmapmrg, applymsk, [('out_avg', 'in_file')]),
(magnitude_wf, applymsk, [('outputnode.fmap_mask', 'mask_file')]),
(applymsk, fmap_postproc_wf, [('out_file', 'inputnode.fmap')]),
(magnitude_wf, fmap_postproc_wf, [
Expand Down
5 changes: 3 additions & 2 deletions sdcflows/workflows/gre.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def init_magnitude_wf(omp_nthreads, name='magnitude_wf'):
name='outputnode')

# Merge input magnitude images
magmrg = pe.Node(IntraModalMerge(), name='magmrg')
magmrg = pe.Node(IntraModalMerge(hmc=False, grand_mean_scaling=True),
name='magmrg')

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

workflow.connect([
(inputnode, magmrg, [('magnitude', 'in_files')]),
(magmrg, n4_correct, [('out_file', 'input_image')]),
(magmrg, n4_correct, [('out_avg', 'input_image')]),
(n4_correct, bet, [('output_image', 'in_file')]),
(bet, outputnode, [('mask_file', 'fmap_mask'),
('out_file', 'fmap_ref'),
Expand Down

0 comments on commit 2e6faa0

Please sign in to comment.