Skip to content

Commit 88b8c98

Browse files
committed
Renaming
1 parent 043370b commit 88b8c98

File tree

2 files changed

+62
-62
lines changed

2 files changed

+62
-62
lines changed

nipype/interfaces/afni/base.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,21 +96,21 @@ def standard_image(img_name):
9696
return os.path.join(basedir, img_name)
9797

9898

99-
class AFNITraitedSpec(CommandLineInputSpec):
99+
class AFNIBaseCommandInputSpec(CommandLineInputSpec):
100100
outputtype = traits.Enum('AFNI', Info.ftypes.keys(),
101101
desc='AFNI output filetype')
102102

103103

104-
class AFNICommand(CommandLine):
104+
class AFNIBaseCommand(CommandLine):
105105
"""General support for AFNI commands. Every AFNI command accepts 'outputtype' input. For example:
106106
afni.Threedsetup(outputtype='NIFTI_GZ')
107107
"""
108108

109-
input_spec = AFNITraitedSpec
109+
input_spec = AFNIBaseCommandInputSpec
110110
_outputtype = None
111111

112112
def __init__(self, **inputs):
113-
super(AFNICommand, self).__init__(**inputs)
113+
super(AFNIBaseCommand, self).__init__(**inputs)
114114
self.inputs.on_trait_change(self._output_update, 'outputtype')
115115

116116
if self._outputtype is None:
@@ -186,7 +186,7 @@ def _gen_fname(self, basename, cwd=None, suffix='_afni', change_ext=True, prefix
186186
return fname
187187

188188

189-
class AFNIPrefixInputSpec(AFNITraitedSpec):
189+
class AFNICommandInputSpec(AFNIBaseCommandInputSpec):
190190
out_file = File("%s_afni", desc='output image file name',
191191
argstr='-prefix %s', xor=['out_file', 'prefix', 'suffix'], name_source="in_file", usedefault=True)
192192
prefix = traits.Str(
@@ -195,8 +195,8 @@ class AFNIPrefixInputSpec(AFNITraitedSpec):
195195
desc='output image suffix', deprecated=0.8, new_name="out_file")
196196

197197

198-
class AFNIPrefixCommand(AFNICommand):
199-
input_spec = AFNIPrefixInputSpec
198+
class AFNICommand(AFNIBaseCommand):
199+
input_spec = AFNICommandInputSpec
200200

201201
def _gen_filename(self, name):
202202
trait_spec = self.inputs.trait(name)
@@ -212,7 +212,7 @@ def _gen_filename(self, name):
212212
getattr(self.inputs, trait_spec.name_source))
213213
return self._gen_fname(basename=base, prefix=prefix, suffix=suffix, cwd='')
214214
else:
215-
return super(AFNIPrefixCommand, self)._gen_filename(name)
215+
return super(AFNICommand, self)._gen_filename(name)
216216

217217
def _overload_extension(self, value):
218218
path, base, _ = split_filename(value)
@@ -229,6 +229,6 @@ def _list_outputs(self):
229229
return outputs
230230

231231

232-
class AFNIPrefixOutputSpec(TraitedSpec):
232+
class AFNICommandOutputSpec(TraitedSpec):
233233
out_file = File(desc='output file',
234234
exists=True)

0 commit comments

Comments
 (0)