Skip to content

Commit cba28e4

Browse files
committed
DOCTEST: Exercise __init__ and _list_outputs
1 parent 95110ee commit cba28e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nipype/interfaces/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,11 @@ class SimpleInterface(BaseInterface):
12411241
... def _run_interface(self, runtime):
12421242
... self._results['doubled'] = double(self.inputs.x)
12431243
... return runtime
1244+
1245+
>>> dbl = Double()
1246+
>>> dbl.inputs.x = 2
1247+
>>> dbl.run().outputs.doubled
1248+
4.0
12441249
"""
12451250
def __init__(self, from_file=None, resource_monitor=None, **inputs):
12461251
super(SimpleInterface, self).__init__(

0 commit comments

Comments
 (0)