Skip to content

Conversation

@agramfort
Copy link
Member

No description provided.

wmvanvliet and others added 11 commits December 22, 2014 10:06
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
@agramfort agramfort changed the title EEG Reference reloaded ! MRG : EEG Reference reloaded ! Dec 23, 2014
@agramfort
Copy link
Member Author

ready to merge on my end

@wmvanvliet
Copy link
Contributor

_has_avg_ref_proj and _needs_avg_ref_proj may be good candidates to move to io/reference.py. Although they deal with projections, so keeping them in proj.py makes sense as well... your call.

I'm very happy with these changes.

@agramfort
Copy link
Member Author

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 :)

@dengemann
Copy link
Member

I'll have some time to do one round of review and testing. I'd like to see how it works with EGI data

On 24 Dec 2014, at 11:31, Alexandre Gramfort notifications@github.com wrote:

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 :)


Reply to this email directly or view it on GitHub.

@larsoner
Copy link
Member

LGTM, +1 for merge once @dengemann is happy.

@agramfort
Copy link
Member Author

let's wait for @dengemann then. No rush it's xmas...

@wmvanvliet
Copy link
Contributor

Merry Christmas everyone.

(why is my inbox exploding with mne-python comments/commits? Stop coding and go celebrate ;])

On 25 Dec 2014, at 18:49, Alexandre Gramfort notifications@github.com wrote:

let's wait for @dengemann then. No rush it's xmas...

Reply to this email directly or view it on GitHub #1713 (comment).

Marijn van Vliet
w.m.vanvliet@gmail.com

@agramfort
Copy link
Member Author

merry MNE xmas ! :)

@dengemann
Copy link
Member

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:

merry MNE xmas ! :)


Reply to this email directly or view it on GitHub
#1713 (comment).

@dengemann
Copy link
Member

@wmvanvliet this one needs a rebase.

mne/io/proj.py Outdated
Copy link
Member

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.

@wmvanvliet
Copy link
Contributor

closed in favour of #1733

@wmvanvliet wmvanvliet closed this Jan 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants