Skip to content

Commit 5108d05

Browse files
author
Steven Giavasis
committed
Fixed the " AttributeError: 'Refit' object has no attribute 'outputs' " error.
1 parent 0a89257 commit 5108d05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,11 @@ class Refit(CommandLine):
193193
_cmd = '3drefit'
194194
input_spec = RefitInputSpec
195195
output_spec = AFNICommandOutputSpec
196+
outputs = {}
196197

197198
def _list_outputs(self):
198-
outputs = super(Refit, self)._list_outputs()
199-
outputs["out_file"] = os.path.abspath(self.inputs.in_file)
200-
return outputs
199+
self.outputs["out_file"] = os.path.abspath(self.inputs.in_file)
200+
return self.outputs
201201

202202

203203
class WarpInputSpec(AFNICommandInputSpec):

0 commit comments

Comments
 (0)