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
The docstring of the picks argument in read_ch_adjacency is wrong as there is no info provided to this function.
Also, find_ch_adjacency could benefit from an extra argument similar to pick in read_ch_adjacency to select channels to include in the adjacency matrix. I see 2 options forward:
(1) Keep ch_type and add exclude=() which can be set to exclude="bads"
(2) Deprecate ch_type in favor of the traditional picks argument, with an adapted docstring mentioning that the channel selection provided must yield a single channel type (+ check and appropriate error message)
I'm in favor of (2) as it offers more flexibility to find_ch_adjacency.
Activity
larsoner commentedon Dec 12, 2023
Given
ch_typeis in second position and we easily can do something like:that will avoid breaking code for some folks, I'm in favor of (2)