We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d01bf40 commit f6b49f5Copy full SHA for f6b49f5
nipype/interfaces/fsl/epi.py
@@ -1385,7 +1385,14 @@ class EddyQuad(FSLCommand):
1385
def _list_outputs(self):
1386
from glob import glob
1387
outputs = self.output_spec().get()
1388
- out_dir = os.path.abspath(self.inputs.output_dir)
+
1389
+ # If the output directory isn't defined, the interface seems to use
1390
+ # the default but not set its value in `self.inputs.output_dir`
1391
+ if not isdefined(self.inputs.output_dir):
1392
+ out_dir = os.path.abspath(self.inputs.base_name + '.qc.nii.gz')
1393
+ else:
1394
+ out_dir = os.path.abspath(self.inputs.output_dir)
1395
1396
outputs['out_qc_json'] = os.path.join(out_dir, 'qc.json')
1397
outputs['out_qc_pdf'] = os.path.join(out_dir, 'qc.pdf')
1398
0 commit comments