Skip to content
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
7 changes: 1 addition & 6 deletions nipype/interfaces/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,7 @@ def __init__(self, fields=None, mandatory_inputs=True, **inputs):
self.inputs.set(**inputs)

def _add_output_traits(self, base):
undefined_traits = {}
for key in self._fields:
base.add_trait(key, traits.Any)
undefined_traits[key] = Undefined
base.trait_set(trait_change_notify=False, **undefined_traits)
return base
return add_traits(base, self._fields)

def _list_outputs(self):
# manual mandatory inputs check
Expand Down