Skip to content

Commit 75d12f4

Browse files
committed
enh: simplify base interface
1 parent 2f4ac09 commit 75d12f4

File tree

3 files changed

+80
-277
lines changed

3 files changed

+80
-277
lines changed

nipype/interfaces/base/core.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -99,33 +99,10 @@ def help(cls, returnhelp=False):
9999
print(allhelp)
100100
return None # R1710
101101

102-
def __init__(self):
103-
"""Subclasses must implement __init__"""
104-
raise NotImplementedError
105-
106102
def run(self):
107103
"""Execute the command."""
108104
raise NotImplementedError
109105

110-
def aggregate_outputs(self, runtime=None, needed_outputs=None):
111-
"""Called to populate outputs"""
112-
raise NotImplementedError
113-
114-
def _list_outputs(self):
115-
""" List expected outputs"""
116-
raise NotImplementedError
117-
118-
@classmethod
119-
def _get_filecopy_info(cls):
120-
"""Provides information about file inputs to copy or link to cwd.
121-
Necessary for pipeline operation
122-
"""
123-
iflogger.warning(
124-
"_get_filecopy_info member of Interface was deprecated "
125-
"in nipype-1.1.6 and will be removed in 1.2.0"
126-
)
127-
return get_filecopy_info(cls)
128-
129106

130107
class BaseInterface(Interface):
131108
"""Implement common interface functionality.

0 commit comments

Comments
 (0)