Skip to content

Commit f1d3e94

Browse files
author
bpinsard
committed
fix tcorrmap for use of source_name, depends on recent fix cline_bug branch
1 parent 3eb6c66 commit f1d3e94

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,32 +1762,6 @@ def _format_arg(self, name, trait_spec, value):
17621762
else:
17631763
return super(TCorrMap, self)._format_arg(name, trait_spec, value)
17641764

1765-
def _list_outputs(self):
1766-
outputs = self.output_spec().get()
1767-
for o in self._outputs().get().keys():
1768-
ov = getattr(self.inputs, o)
1769-
if not isdefined(ov):
1770-
ov = self._gen_fname(
1771-
o, suffix=self.input_spec.class_traits()[o].suffix)
1772-
outputs[o] = ov
1773-
return outputs
1774-
1775-
def _parse_inputs(self, skip=None):
1776-
outs = self._list_outputs()
1777-
# skip under
1778-
if skip == None:
1779-
skip = []
1780-
skip.extend([k for k in self._outputs()
1781-
.get().keys() if not isdefined(outs[k])])
1782-
return super(TCorrMap, self)._parse_inputs(skip=skip)
1783-
1784-
def _gen_filename(self, name):
1785-
if hasattr(self.inputs, name) and \
1786-
not isdefined(getattr(self.inputs, name)):
1787-
return Undefined
1788-
return super(TCorrMap, self)._gen_filename(name)
1789-
1790-
17911765
class AutoboxInputSpec(AFNICommandInputSpec):
17921766
in_file = File(exists=True, mandatory=True, argstr='-input %s',
17931767
desc='input file')

0 commit comments

Comments
 (0)