Skip to content

Update docs and code: set_eeg_reference([]) and the automatic average #7471

Closed

Description

@sappelhoff

Based on this the thread on referencing in the mailing list, I got the idea that the past recommendation to use set_eeg_reference([]) to prevent MNE from adding an automatic average reference is no longer needed.

Yet throughout the codebase, there are still references to this old behavior (a list follows).

# No reference. This assumes that the EEG has already been referenced properly.
# This explicitly prevents MNE from adding a default EEG reference. Any average
# reference projector is automatically removed.
raw.set_eeg_reference([])

# This explicitly prevents MNE from adding a default EEG average reference
# required for source localization.
raw_no_ref, _ = mne.set_eeg_reference(raw, [])

# **Average reference**: This is normally added by default, but can also

... and there are many more :-)

Is it worth it to go through the code and remove these wrong docs?

cc @dominikwelke @larsoner

PS: Through my browser (Firefox), I get an encryption warning for the MNE mailing list. Just fyi.

Activity

  1. cbrnr commented on Mar 18, 2020

    @cbrnr
    Contributor

    I never understood this behavior anyway, and it would be great if this could be clarified!

  2. changed the title [-]Consistently using `set_eeg_reference([])`[/-] [+]Update docs and code: set_eeg_reference([]) and the automatic average[/+] on Mar 18, 2020
  3. agramfort commented on Mar 18, 2020

    @agramfort
    SponsorMember
  4. added this to the 0.20 milestone on Mar 18, 2020
  5. larsoner commented on Mar 18, 2020

    @larsoner
    Member

    Yes we should get this into 0.20, @sappelhoff do you have time for it this week? If not I or maybe @drammock could look

  6. sappelhoff commented on Mar 18, 2020

    @sappelhoff
    MemberAuthor

    Cool, I can do this today. Good deed for the day :)

  7. dominikwelke commented on Mar 18, 2020

    @dominikwelke
    Contributor

    nice, @sappelhoff ! I also planned to open a PR after finishing another project.. too slow :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions