Skip to content

Commit 441f83e

Browse files
josephmjeoesteban
authored andcommitted
add fake files for docs
1 parent 387de45 commit 441f83e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dmriprep/workflows/dwi/base.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,18 +130,22 @@ def init_dwi_preproc_wf(
130130
# For doc building purposes
131131
if not hasattr(layout, 'parse_file_entities'):
132132
LOGGER.log(25, 'No valid layout: building empty workflow.')
133+
bvec_file = '/completely/made/up/path/sub-01_dwi.bvec'
134+
bval_file = '/completely/made/up/path/sub-01_dwi.bval'
133135
metadata = {
134136
'PhaseEncodingDirection': 'j',
135137
}
136138
else:
139+
bvec_file = layout.get_bvec(dwi_file)
140+
bval_file = layout.get_bval(dwi_file)
137141
metadata = layout.get_metadata(dwi_file)
138142

139143
inputnode = pe.Node(niu.IdentityInterface(
140144
fields=['dwi_file', 'bvec_file', 'bval_file']),
141145
name='inputnode')
142146
inputnode.inputs.dwi_file = dwi_file
143-
inputnode.inputs.bvec_file = layout.get_bvec(dwi_file)
144-
inputnode.inputs.bval_file = layout.get_bval(dwi_file)
147+
inputnode.inputs.bvec_file = bvec_file
148+
inputnode.inputs.bval_file = bval_file
145149

146150
outputnode = pe.Node(niu.IdentityInterface(
147151
fields=['out_dwi', 'out_bvec', 'out_bval', 'out_rasb',

0 commit comments

Comments
 (0)