-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
MRG: EEG Reference, now also in Epochs and Evoked #1733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This adds a base function 'apply_reference' that can apply various different referencing schemes. Two convenience functions are also added that provide a convenient interface to the base function: - set_eeg_reference: apply a simple reference to all EEG channels - set_bipolar_reference: apply a bipolar reference (or more)
Raw and Epoch classes will no longer add an average reference if the `custom_ref_applied` flag was set. SSP projections will still attempt this, but a new assertion in `make_eeg_average_ref_proj` will raise an error if the flag was set. Before a CAR projection is added, the `info['custom_ref_applied']` flag is checked.
- Also check for duplicate channel names - Bilpolar channels can be named after the anode/cathode - Inform user of the chosen bipolar channel name
Any existing SSP operators that are inactive and touch sensors used in the referencing scheme will be applied.
|
@dengemann can you give this a try? The referencing function can now also take an Epochs or Evoked object as parameter. |
examples/plot_rereference_eeg.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leave one line empty below for readanility
|
@wmvanvliet feel free to merge after having addressed my comments. Good work! |
|
Please rebase and check Travis before merging, this will ensure docstrings are automatically checked (recent PR merge). |
|
can I press the green button now? |
|
The honor is yours @wmvanvliet :) |
MRG: EEG Reference, now also in Epochs and Evoked
|
Thanks for this nice contrib @wmvanvliet! And als for enduring the review sprint and all my nit-picky inputs. |
|
thanks @wmvanvliet ! |
continuation from #1713