Skip to content

Commit a865348

Browse files
committed
Merge pull request #1368 from alexsavio/idiffix
Quick cleanup of IdentityInterface code
2 parents edff8db + f59525c commit a865348

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

nipype/interfaces/utility.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,7 @@ def __init__(self, fields=None, mandatory_inputs=True, **inputs):
7676
self.inputs.set(**inputs)
7777

7878
def _add_output_traits(self, base):
79-
undefined_traits = {}
80-
for key in self._fields:
81-
base.add_trait(key, traits.Any)
82-
undefined_traits[key] = Undefined
83-
base.trait_set(trait_change_notify=False, **undefined_traits)
84-
return base
79+
return add_traits(base, self._fields)
8580

8681
def _list_outputs(self):
8782
# manual mandatory inputs check

0 commit comments

Comments
 (0)