Skip to content

Conversation

@wmvanvliet
Copy link
Contributor

continuation from #1713

wmvanvliet and others added 15 commits January 5, 2015 11:35
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.
@wmvanvliet wmvanvliet changed the title EEG Reference, now also in Epochs and Evoked MRG: EEG Reference, now also in Epochs and Evoked Jan 5, 2015
@wmvanvliet
Copy link
Contributor Author

@dengemann can you give this a try? The referencing function can now also take an Epochs or Evoked object as parameter.

Copy link
Member

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

@dengemann
Copy link
Member

@wmvanvliet feel free to merge after having addressed my comments. Good work!

@larsoner
Copy link
Member

larsoner commented Jan 6, 2015

Please rebase and check Travis before merging, this will ensure docstrings are automatically checked (recent PR merge).

@wmvanvliet
Copy link
Contributor Author

can I press the green button now?

@dengemann
Copy link
Member

The honor is yours @wmvanvliet :)

wmvanvliet added a commit that referenced this pull request Jan 7, 2015
MRG: EEG Reference, now also in Epochs and Evoked
@wmvanvliet wmvanvliet merged commit 23f13b3 into mne-tools:master Jan 7, 2015
@wmvanvliet wmvanvliet deleted the reference branch January 7, 2015 15:05
@dengemann
Copy link
Member

Thanks for this nice contrib @wmvanvliet! And als for enduring the review sprint and all my nit-picky inputs.

@agramfort
Copy link
Member

thanks @wmvanvliet !

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