SEEG/iEEG bipolar reference setup

That function was originally designed with EOG in mind, where we usually have a horizontal and vertical setup. I’m not familiar with SEEG, so perhaps this makes no sense, but you can give lists of channels to the function to create bipolar pairs. So, if we would want A1-A2, A2-A3, A3-A5, we can do:

raw_ref = mne.set_bipolar_reference(
    raw,
    ["A1", "A2", "A3"],
    ["A2", "A3", "A5"],
    ch_name=["A1-A2", "A2-A3", "A3-A5"]
)