forked from mne-tools/mne-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix eeg rereferencing error when ch_type is defined (mne-tools#7847)
* Fix eeg rereferencing error when ch_type is defined When calling raw.set_eeg_reference with a pre-defined channel type, the error "local variable 'type_' referenced before assignment" occurs. eg. raw.set_eeg_reference(ref_channels='average', projection=False, ch_type='seeg') type_ is set while detecting the channel type that should be referenced. This commit uses the ch_type variable instead of type_, which is guaranteed to be set. * TST: Add test Co-authored-by: Eric Larson <[email protected]>
- Loading branch information
Showing
3 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters