Skip to content

Commit fc42351

Browse files
committed
enh: make i/o specs of SplitSeries more consistent [skip ci]
1 parent 0ae5351 commit fc42351

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

niworkflows/interfaces/nibabel.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,22 +99,22 @@ def _run_interface(self, runtime):
9999
return runtime
100100

101101

102-
class _FourToThreeInputSpec(BaseInterfaceInputSpec):
102+
class _SplitSeriesInputSpec(BaseInterfaceInputSpec):
103103
in_file = File(exists=True, mandatory=True, desc="input 4d image")
104104
allow_3D = traits.Bool(
105105
False, usedefault=True, desc="do not fail if a 3D volume is passed in"
106106
)
107107

108108

109-
class _FourToThreeOutputSpec(TraitedSpec):
109+
class _SplitSeriesOutputSpec(TraitedSpec):
110110
out_files = OutputMultiObject(File(exists=True), desc="output list of 3d images")
111111

112112

113113
class SplitSeries(SimpleInterface):
114114
"""Split a 4D dataset along the last dimension into a series of 3D volumes."""
115115

116-
input_spec = _FourToThreeInputSpec
117-
output_spec = _FourToThreeOutputSpec
116+
input_spec = _SplitSeriesInputSpec
117+
output_spec = _SplitSeriesOutputSpec
118118

119119
def _run_interface(self, runtime):
120120
filenii = nb.squeeze_image(nb.load(self.inputs.in_file))

0 commit comments

Comments
 (0)