Skip to content

Commit 6aff70c

Browse files
committed
add tab completion for node and interface inputs properties
1 parent 3ec8065 commit 6aff70c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nipype/interfaces/base/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ def __init__(self, from_file=None, resource_monitor=None,
178178

179179
self.inputs = self.input_spec(**inputs)
180180
self.ignore_exception = ignore_exception
181+
in_spec = str(self.input_spec()).splitlines()
182+
tab_list = [x.split(' ')[0] for x in in_spec if x not in ['']]
183+
self.inputs.__all__ = tab_list
181184

182185
if resource_monitor is not None:
183186
self.resource_monitor = resource_monitor

0 commit comments

Comments
 (0)