Skip to content

FIX: added isdefined module to ICA_AROMA.py #2066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions nipype/interfaces/fsl/ICA_AROMA.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

from __future__ import print_function, division, unicode_literals, absolute_import
from ..base import (TraitedSpec, CommandLineInputSpec, CommandLine,
File, Directory, traits)
File, Directory, traits, isdefined)
import os


Expand Down Expand Up @@ -109,7 +109,7 @@ def _list_outputs(self):
else:
outputs['out_dir'] = self._gen_filename('out_dir')
out_dir = outputs['out_dir']

if self.inputs.denoise_type in ('aggr', 'both'):
outputs['aggr_denoised_file'] = os.path.join(out_dir, 'denoised_func_data_aggr.nii.gz')
if self.inputs.denoise_type in ('nonaggr', 'both'):
Expand All @@ -119,5 +119,3 @@ def _list_outputs(self):
def _gen_filename(self, name):
if name == 'out_dir':
return os.getcwd()