File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,10 @@ def init_dwi_preproc_wf(dwi_file):
21
21
from dmriprep import config
22
22
from dmriprep.workflows.dwi.base import init_dwi_preproc_wf
23
23
with mock_config():
24
- wf = init_dwi_preproc_wf()
24
+ wf = init_dwi_preproc_wf(
25
+ f"{config.execution.layout.root}/"
26
+ "sub-THP0005/dwi/sub-THP0005_dwi.nii.gz"
27
+ )
25
28
26
29
Parameters
27
30
----------
@@ -139,7 +142,8 @@ def init_dwi_preproc_wf(dwi_file):
139
142
140
143
ds_report_reg = pe .Node (
141
144
DerivativesDataSink (
142
- base_directory = str (config .execution .output_dir ), datatype = "figures" ,
145
+ base_directory = str (config .execution .output_dir ),
146
+ datatype = "figures" ,
143
147
),
144
148
name = "ds_report_reg" ,
145
149
run_without_submitting = True ,
@@ -199,6 +203,7 @@ def _get_wf_name(filename):
199
203
200
204
"""
201
205
from pathlib import Path
206
+
202
207
fname = Path (filename ).name .rpartition (".nii" )[0 ].replace ("_dwi" , "_wf" )
203
- fname_nosub = '_' .join (fname .split ("_" )[1 :])
208
+ fname_nosub = "_" .join (fname .split ("_" )[1 :])
204
209
return f"dwi_preproc_{ fname_nosub .replace ('.' , '_' ).replace (' ' , '' ).replace ('-' , '_' )} "
You can’t perform that action at this time.
0 commit comments