@@ -91,11 +91,11 @@ def _run_interface(self, runtime):
91
91
return runtime
92
92
93
93
94
- class _Save4Dto3DInputSpec (BaseInterfaceInputSpec ):
94
+ class _FourToThreeInputSpec (BaseInterfaceInputSpec ):
95
95
in_file = File (exists = True , mandatory = True , desc = 'input 4d image' )
96
96
97
97
98
- class _Save4Dto3DOutputSpec (TraitedSpec ):
98
+ class _FourToThreeOutputSpec (TraitedSpec ):
99
99
out_files = OutputMultiPath (File (exists = True ),
100
100
desc = 'output list of 3d images' )
101
101
@@ -104,8 +104,8 @@ class FourToThree(SimpleInterface):
104
104
"""Split a 4D dataset along the last dimension
105
105
into multiple 3D volumes."""
106
106
107
- input_spec = _Save4Dto3DInputSpec
108
- output_spec = _Save4Dto3DOutputSpec
107
+ input_spec = _FourToThreeInputSpec
108
+ output_spec = _FourToThreeOutputSpec
109
109
110
110
def _run_interface (self , runtime ):
111
111
filenii = nb .load (self .inputs .in_file )
@@ -123,21 +123,21 @@ def _run_interface(self, runtime):
123
123
return runtime
124
124
125
125
126
- class _Save3Dto4DInputSpec (BaseInterfaceInputSpec ):
126
+ class _ConcatImagesInputSpec (BaseInterfaceInputSpec ):
127
127
in_files = InputMultiPath (File (exists = True , mandatory = True ,
128
128
desc = 'input list of 3d images' ))
129
129
130
130
131
- class _Save3Dto4DOutputSpec (TraitedSpec ):
131
+ class _ConcatImagesOutputSpec (TraitedSpec ):
132
132
out_file = File (exists = True , desc = 'output list of 3d images' )
133
133
134
134
135
- class Save3Dto4D (SimpleInterface ):
135
+ class ConcatImages (SimpleInterface ):
136
136
"""Merge a list of 3D volumes along the last dimension into a single
137
137
4D image."""
138
138
139
- input_spec = _Save4Dto3DInputSpec
140
- output_spec = _Save4Dto3DOutputSpec
139
+ input_spec = _ConcatImagesInputSpec
140
+ output_spec = _ConcatImagesOutputSpec
141
141
142
142
def _run_interface (self , runtime ):
143
143
nii_list = []
0 commit comments