You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to change the shape of the searchlight to a cube (which is the default shape of classbrainiak.searchlight.searchlight.Searchlight that is used in the tutorials) to a sphere/ball. I can import a searchlight ball as classbrainiak.searchlight.searchlight.Ball, but I am not sure of what to do next. Specifiying shape in the form of sl = Searchlight(shape=Ball) or sl = Searchlight and then Searchlight.shape=Ball doesnt work. I can't also run directly searchlight with the brainiak.searchlight.searchlight.Ball object.
What should I do to change the shape of the searchlight? I'm sorry if the answer is kind of obvious...
Hi, thanks for your answer! Unfortunately when doing something like sl = Searchlight(sl_rad=5, shape=Ball), the resulting searchlight images are empty. And trying sl = Searchlight(shape=Ball(rad=5)) produces TypeError: 'Ball' object is not callable
@AntoineBouyeure sorry that I somehow missed your reply. Were you able to solve it later or just gave it up? One guess is that the imaging data has very few voxels.
Activity
lcnature commentedon Oct 2, 2023
Hi,
Try this?
AntoineBouyeure commentedon Oct 2, 2023
Hi, thanks for your answer! Unfortunately when doing something like
sl = Searchlight(sl_rad=5, shape=Ball), the resulting searchlight images are empty. And tryingsl = Searchlight(shape=Ball(rad=5))producesTypeError: 'Ball' object is not callablelcnature commentedon Jul 4, 2024
@AntoineBouyeure sorry that I somehow missed your reply. Were you able to solve it later or just gave it up? One guess is that the imaging data has very few voxels.