Draft
Show file tree
Hide file tree
Changes from 1 commit
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Failed to load files.
PrevPrevious commit
enh: simplify base interface
  • Loading branch information
@oesteban
oesteban committedJan 8, 2020
commit 75d12f440dfd8734507a83af6f6c3cfecab24f14
Original file line numberDiff line numberDiff line change
Expand Up@@ -99,33 +99,10 @@ def help(cls, returnhelp=False):
print(allhelp)
return None # R1710

def __init__(self):
"""Subclasses must implement __init__"""
raise NotImplementedError

def run(self):
"""Execute the command."""
raise NotImplementedError

def aggregate_outputs(self, runtime=None, needed_outputs=None):
"""Called to populate outputs"""
raise NotImplementedError

def _list_outputs(self):
""" List expected outputs"""
raise NotImplementedError

@classmethod
def _get_filecopy_info(cls):
"""Provides information about file inputs to copy or link to cwd.
Necessary for pipeline operation
"""
iflogger.warning(
"_get_filecopy_info member of Interface was deprecated "
"in nipype-1.1.6 and will be removed in 1.2.0"
)
return get_filecopy_info(cls)


class BaseInterface(Interface):
"""Implement common interface functionality.
Expand Down
Loading