Skip to content

Commit 0d50349

Browse files
author
dPys
committed
Chage naming to ConcatImages, fix in/out spec namings
1 parent f091543 commit 0d50349

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

niworkflows/interfaces/nibabel.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ def _run_interface(self, runtime):
9191
return runtime
9292

9393

94-
class _Save4Dto3DInputSpec(BaseInterfaceInputSpec):
94+
class _FourToThreeInputSpec(BaseInterfaceInputSpec):
9595
in_file = File(exists=True, mandatory=True, desc='input 4d image')
9696

9797

98-
class _Save4Dto3DOutputSpec(TraitedSpec):
98+
class _FourToThreeOutputSpec(TraitedSpec):
9999
out_files = OutputMultiPath(File(exists=True),
100100
desc='output list of 3d images')
101101

@@ -104,8 +104,8 @@ class FourToThree(SimpleInterface):
104104
"""Split a 4D dataset along the last dimension
105105
into multiple 3D volumes."""
106106

107-
input_spec = _Save4Dto3DInputSpec
108-
output_spec = _Save4Dto3DOutputSpec
107+
input_spec = _FourToThreeInputSpec
108+
output_spec = _FourToThreeOutputSpec
109109

110110
def _run_interface(self, runtime):
111111
filenii = nb.load(self.inputs.in_file)
@@ -123,21 +123,21 @@ def _run_interface(self, runtime):
123123
return runtime
124124

125125

126-
class _Save3Dto4DInputSpec(BaseInterfaceInputSpec):
126+
class _ConcatImagesInputSpec(BaseInterfaceInputSpec):
127127
in_files = InputMultiPath(File(exists=True, mandatory=True,
128128
desc='input list of 3d images'))
129129

130130

131-
class _Save3Dto4DOutputSpec(TraitedSpec):
131+
class _ConcatImagesOutputSpec(TraitedSpec):
132132
out_file = File(exists=True, desc='output list of 3d images')
133133

134134

135-
class Save3Dto4D(SimpleInterface):
135+
class ConcatImages(SimpleInterface):
136136
"""Merge a list of 3D volumes along the last dimension into a single
137137
4D image."""
138138

139-
input_spec = _Save4Dto3DInputSpec
140-
output_spec = _Save4Dto3DOutputSpec
139+
input_spec = _ConcatImagesInputSpec
140+
output_spec = _ConcatImagesOutputSpec
141141

142142
def _run_interface(self, runtime):
143143
nii_list = []

0 commit comments

Comments
 (0)