8000 docs: document return value of run_block_function by erensh27 · Pull Request #607 · brainiak/brainiak · GitHub
[go: up one dir, main page]

Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/brainiak/searchlight/searchlight.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,15 @@ def run_block_function(self, block_fn, extra_block_fn_params=None,
Maximum number of processes running the block function in parallel.
If None, number of available hardware threads, considering cpusets
restrictions.

Returns
-------

An object array with the same shape as the mask, where each voxel
contains the 3D array returned by the block function for the block
containing that voxel, with the padding removed. The array is
populated only on the root rank; on other ranks it is returned
unpopulated.
"""
rank = self.comm.rank

Expand Down
0