Skip to content

Commit 1a7c147

Browse files
josephmjeoesteban
authored andcommitted
fix layout grabbing
1 parent aef46db commit 1a7c147

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dmriprep/workflows/dwi/base.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,12 @@ def init_dwi_preproc_wf(
138138
metadata = layout.get_metadata(dwi_file)
139139

140140
inputnode = pe.Node(niu.IdentityInterface(
141-
fields=['dwi_file', 'bvec_file', 'bval_file']),
141+
fields=['dwi_file', 'b0_ixs',
142+
'bvec_file', 'bval_file']),
142143
name='inputnode')
143144
inputnode.inputs.dwi_file = dwi_file
144-
inputnode.inputs.bvec_file = bvec_file
145-
inputnode.inputs.bval_file = bval_file
145+
inputnode.inputs.bvec_file = layout.get_bvec(bvec_file)
146+
inputnode.inputs.bval_file = layout.get_bval(bval_file)
146147

147148
outputnode = pe.Node(niu.IdentityInterface(
148149
fields=['dwi_file', 'bvec_file', 'bval_file', 'rasb_file',

0 commit comments

Comments
 (0)