Skip to content

Commit 82d2715

Browse files
committed
fix: use inherited _list_outputs
1 parent e511fbe commit 82d2715

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

nipype/interfaces/workbench/metric.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,6 @@ class MetricResample(WBCommand):
118118
_cmd = 'wb_command -metric-resample'
119119

120120
def _format_arg(self, opt, spec, val):
121-
if opt == "out_file":
122-
# ensure generated filename is assigned to trait
123-
self.inputs.trait_set(out_file=val)
124121
if opt in ['current_area', 'new_area']:
125122
if not self.inputs.area_surfs and not self.inputs.area_metrics:
126123
raise ValueError("{} was set but neither area_surfs or"
@@ -139,8 +136,7 @@ def _format_arg(self, opt, spec, val):
139136
return super(MetricResample, self)._format_arg(opt, spec, val)
140137

141138
def _list_outputs(self):
142-
outputs = self._outputs().get()
143-
outputs['out_file'] = os.path.abspath(self.inputs.out_file)
139+
outputs = super(MetricResample, self)._list_outputs()
144140
if self.inputs.valid_roi_out:
145141
roi_file = self._gen_filename(self.inputs.in_file, suffix='_roi')
146142
outputs['roi_file'] = os.path.abspath(roi)

0 commit comments

Comments
 (0)