braindecode.modules.resolve_channel_positions#
- braindecode.modules.resolve_channel_positions(chs_info, bank, montage=None, on_missing='error')[source]#
Positions of
chs_infoin a name -> positionbank(REVE’s bank).Each channel takes, in order:
"<montage>_<name>"whenmontageis given ("biosemi128"), its name, its name ignoring case and anEEGprefix or-REFsuffix, its legacy alias (T3->T7), or for a bipolarA-Bthe midpoint ofAandB. Other channels followon_missing:"error"raises,"drop"leaves them out, and"nearest"takes the bank entry closest to the channel’sloc(in the bank’s frame), or drops it when it has noloc. No position is invented.- Returns:
positions (numpy.ndarray) –
(n_kept, 3)positions.kept (list of int) – Indices of the channels of
chs_infothat got a position.