Skip to content

Commit f59525c

Browse files
committedFeb 18, 2016
cleanup identityinterface add_outputs
1 parent e4f7300 commit f59525c

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)
Please sign in to comment.