Skip to content

Commit 9d33767

Browse files
committed
DOC: Function docs and CHANGES updates for external imports
1 parent 4ca0812 commit 9d33767

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ Next release
99
* ENH: Minor improvements to FSL's FUGUE and FLIRT interfaces
1010
* ENH: Added optional dilation of parcels in cmtk.Parcellate
1111
* ENH: Interpolation mode added to afni.Resample
12+
* ENH: Function interface can accept a list of strings containing import statements
13+
that allow external functions to run without their imports defined in the
14+
function body
1215

1316
* FIX: SpecifyModel works with 3D files correctly now.
1417

doc/users/function_interface.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ be imported within the function itself::
7171
Without explicitly importing Nibabel in the body of the function, this
7272
would fail.
7373

74+
Alternatively, it is possible to provide a list of strings corresponding
75+
to the imports needed to execute a function as a parameter of the `Function`
76+
constructor. This allows for the use of external functions that do not
77+
import all external definitions inside the function body.
78+
7479
Hello World - Function interface in a workflow
7580
----------------------------------------------
7681

0 commit comments

Comments
 (0)