Skip to content

Commit 2b33d79

Browse files
committed
Bug fixes for afni.model
Patches cbucket output for 3dDeconvolve, correctly parses output of 3dSynthesize.
1 parent 1c174df commit 2b33d79

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

nipype/interfaces/afni/model.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,14 @@ def _list_outputs(self):
293293
outputs['x1D'] = self._gen_fname(
294294
suffix='.xmat.1D', **_gen_fname_opts)
295295

296+
if isdefined(self.inputs.cbucket):
297+
outputs['cbucket'] = os.path.abspath(self.inputs.cbucket)
298+
296299
outputs['reml_script'] = self._gen_fname(
297300
suffix='.REML_cmd', **_gen_fname_opts)
298301
# remove out_file from outputs if x1d_stop set to True
299302
if self.inputs.x1D_stop:
300-
del outputs['out_file']
303+
del outputs['out_file'], outputs['cbucket']
301304
else:
302305
outputs['out_file'] = os.path.abspath(self.inputs.out_file)
303306

@@ -652,3 +655,12 @@ class Synthesize(AFNICommand):
652655
_cmd = '3dSynthesize'
653656
input_spec = SynthesizeInputSpec
654657
output_spec = AFNICommandOutputSpec
658+
659+
def _list_outputs(self):
660+
outputs = self.output_spec().get()
661+
662+
for key in outputs.keys():
663+
if isdefined(self.inputs.get()[key]):
664+
outputs[key] = os.path.abspath(self.inputs.get()[key])
665+
666+
return outputs

0 commit comments

Comments
 (0)