Skip to content

Allowing the sl_rad parameter in searchlight to be 0 - #440

Merged
mihaic merged 4 commits into
brainiak:masterfrom
lcnature:searchlight_sl_rad
Oct 31, 2019
Merged

Allowing the sl_rad parameter in searchlight to be 0#440
mihaic merged 4 commits into
brainiak:masterfrom
lcnature:searchlight_sl_rad

Conversation

@lcnature

@lcnature lcnature commented Oct 18, 2019

Copy link
Copy Markdown
Contributor

There are use cases in which we want to do the same processing on all voxels and want to use MPI to parallelize this. In this case, the searchlight has the size of 1, and it corresponds to sl_rad = 0 when initializing SearchLight. But the current implementation will distribute an empty array to each worker if we set sl_rad = 0. The consequence is that nothing gets computed for each voxel. This PR fixes this bug.

@lcnature
lcnature requested a review from mihaic October 18, 2019 22:08
@mihaic

mihaic commented Oct 18, 2019

Copy link
Copy Markdown
Member

I hope the Conda build problem is intermittent and it will be gone on Monday. :) Will review then.

@CameronTEllis

Copy link
Copy Markdown
Contributor

Happy to review this once those issues are resolved

@lcnature

Copy link
Copy Markdown
Contributor Author

Awesome! @CameronTEllis you are welcome to review it as well. The changes are minor.

@mihaic mihaic mentioned this pull request Oct 21, 2019
@mihaic

mihaic commented Oct 21, 2019

Copy link
Copy Markdown
Member

@CameronTEllis, you can review; the errors are unrelated.

@CameronTEllis CameronTEllis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@mihaic
mihaic merged commit 2e85f0e into brainiak:master Oct 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants