-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
MRG : EEG Reference reloaded ! #1713
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
|
ready to merge on my end |
|
I'm very happy with these changes. |
|
I can move these functions easily otherwise it creates circular dependencies between proj.py and reference.py @wmvanvliet let me give you write access to the repo so you can click the green button yourself :) |
|
I'll have some time to do one round of review and testing. I'd like to see how it works with EGI data
|
|
LGTM, +1 for merge once @dengemann is happy. |
|
let's wait for @dengemann then. No rush it's xmas... |
|
Merry Christmas everyone. (why is my inbox exploding with mne-python comments/commits? Stop coding and go celebrate ;])
Marijn van Vliet |
|
merry MNE xmas ! :) |
|
Santa brought us a good hacking time :) so many presents waiting for merge 2014-12-25 18:44 GMT+01:00 Alexandre Gramfort notifications@github.com:
|
|
@wmvanvliet this one needs a rebase. |
mne/io/proj.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.
@wmvanvliet for python 3 compat it would be good to use six string_types here.
|
closed in favour of #1733 |
No description provided.