Skip to content

Commit f960b93

Browse files
committed
fixing typing as string issue
1 parent 8a0128d commit f960b93

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

nipype2pydra/task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ def types_to_names(spec_fields):
329329
spec_str += f" output_spec = {self.task_name}_output_spec\n"
330330
spec_str += f" executable='{self.nipype_interface._cmd}'\n"
331331

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)
334334

335335
spec_str_black = black.format_file_contents(
336336
spec_str, fast=False, mode=black.FileMode()

0 commit comments

Comments
 (0)