Skip to content

Commit 618e5a2

Browse files
committed
removing gen_file and using a default value in ICA_AROMA
1 parent 365d9c5 commit 618e5a2

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

nipype/interfaces/fsl/aroma.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ICA_AROMAInputSpec(CommandLineInputSpec):
2828
xor=['feat_dir'],
2929
desc='volume to be denoised')
3030
out_dir = Directory(
31-
'out', usedefault=True, genfile=True,
31+
'out', usedefault=True, mandatory=True,
3232
argstr='-o %s', desc='output directory')
3333
mask = File(
3434
exists=True,
@@ -129,10 +129,7 @@ class ICA_AROMA(CommandLine):
129129

130130
def _list_outputs(self):
131131
outputs = self.output_spec().get()
132-
if isdefined(self.inputs.out_dir):
133-
outputs['out_dir'] = os.path.abspath(self.inputs.out_dir)
134-
else:
135-
outputs['out_dir'] = self._gen_filename('out_dir')
132+
outputs['out_dir'] = os.path.abspath(self.inputs.out_dir)
136133
out_dir = outputs['out_dir']
137134

138135
if self.inputs.denoise_type in ('aggr', 'both'):
@@ -142,7 +139,3 @@ def _list_outputs(self):
142139
outputs['nonaggr_denoised_file'] = os.path.join(
143140
out_dir, 'denoised_func_data_nonaggr.nii.gz')
144141
return outputs
145-
146-
def _gen_filename(self, name):
147-
if name == 'out_dir':
148-
return os.getcwd()

nipype/interfaces/fsl/tests/test_auto_ICA_AROMA.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_ICA_AROMA_inputs():
5454
),
5555
out_dir=dict(
5656
argstr='-o %s',
57-
genfile=True,
57+
mandatory=True,
5858
usedefault=True,
5959
),
6060
terminal_output=dict(

0 commit comments

Comments
 (0)