File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change
1
+ task_name : ExtractROI
2
+ nipype_module : nipype.interfaces.fsl.utils
3
+ output_requirements :
4
+ roi_file : [in_file]
5
+ output_templates :
6
+ roi_file : " {in_file}_trim"
7
+ inputs_drop :
8
+ - crop_list
9
+ doctest :
10
+ in_file : test.nii.gz
11
+ t_min : 0
12
+ t_size : 3
13
+ roi_file : test_trim.nii.gz
14
+ cmdline : fslroi test.nii.gz test_trim.nii.gz 0 3
15
+ tests_inputs :
16
+ - in_file : test.nii.gz
17
+ t_min : 0
18
+ t_size : 1
19
+ tests_outputs :
20
+ - roi_file
Original file line number Diff line number Diff line change @@ -329,8 +329,8 @@ def types_to_names(spec_fields):
329
329
spec_str += f" output_spec = { self .task_name } _output_spec\n "
330
330
spec_str += f" executable='{ self .nipype_interface ._cmd } '\n "
331
331
332
- # for tp_repl in self.TYPE_REPLACE:
333
- # spec_str = spec_str.replace(*tp_repl)
332
+ for tp_repl in self .TYPE_REPLACE :
333
+ spec_str = spec_str .replace (* tp_repl )
334
334
335
335
spec_str_black = black .format_file_contents (
336
336
spec_str , fast = False , mode = black .FileMode ()
You can’t perform that action at this time.
0 commit comments