Skip to content

Commit

Permalink
[FIX] Connect inputnode to SDC for pepolar images
Browse files Browse the repository at this point in the history
As a result of refactoring, this node got disconnected for that particular use-case.

This PR fixes that (nipreps#1001 (comment))

Thanks @mgxd for spotting this problem.
  • Loading branch information
oesteban committed Apr 10, 2018
1 parent 1755986 commit 93f0e28
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fmriprep/workflows/fieldmap/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,13 @@ def init_sdc_wf(fmaps, bold_meta, omp_nthreads=1,
omp_nthreads=omp_nthreads,
name='pepolar_unwarp_wf')

workflow.connect([
(inputnode, sdc_unwarp_wf, [
('bold_ref', 'inputnode.in_reference'),
('bold_mask', 'inputnode.in_mask'),
('bold_ref_brain', 'inputnode.in_reference_brain')]),
])

# FIELDMAP path
if fmap['type'] in ['fieldmap', 'phasediff']:
outputnode.inputs.method = 'FMB (%s-based)' % fmap['type']
Expand Down

0 comments on commit 93f0e28

Please sign in to comment.