forked from mne-tools/mne-python
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Speed up set_bipolar_reference (mne-tools#9270)
* Add cathode-location and fix doc * Implementing matrix-multiplication approach (by @jasmainak) * Fix returning ref_to from _check_before_reference * Refine how Info is copied to new channels to avoid mixups and pass tests * Adjust test comparing info of anode/cathode and bipolar-channel to also pass when bipolar-channels are appended * Concatenation of Reference-Instances outside the loop * Using @-operator for matrix-multiplication * Update test_set_bipolar_reference to show info-keys responsible for the errors * Improve performance by creating reference-instance from scratch * channel-information including location is taken from anode * Update test for info just taken from anode * Fix import of create_info, improve docs * Addition to latest.inc * Fix latest.inc * Refactor assert-statements in test_reference.py as suggested by @larsoner * Update latest.inc as suggested by @jasmainak Co-authored-by: Mainak Jas <[email protected]> Co-authored-by: Mainak Jas <[email protected]>
- Loading branch information
Showing
3 changed files
with
88 additions
and
51 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