Skip to content
Closed
Changes from 2 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
5 changes: 5 additions & 0 deletions nipype/interfaces/base/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,11 @@ def run(self, cwd=None, ignore_exception=None, **inputs):

return results

def __call__(self, **kwargs):
"""Make interface into a callable function"""
results = self.run(**kwargs)
return results.outputs

def _list_outputs(self):
""" List the expected outputs
"""
Expand Down