Repository navigation
MRG: Clearer compensation - #3440
Merged
Merged
Conversation
Current coverage is 86.73%@@ master #3440 diff @@
==========================================
Files 339 339
Lines 58400 58512 +112
Methods 0 0
Messages 0 0
Branches 8889 8908 +19
==========================================
+ Hits 50640 50751 +111
Misses 5079 5079
- Partials 2681 2682 +1
|
Member
Author
|
I'm killing the CIs because this will need rebase (again) after #3439, but they passed before |
Member
Author
|
@agramfort I realized that we currently un-do any gradient compensation that was applied while writing, but I don't really think we should. |
| if inst.comp is not None: | ||
| current_comp = inst.compensation_grade | ||
| if current_comp not in (0, None): | ||
| raise RuntimeError('Maxwell filter cannot be done on compensated ' |
Member
|
please update what's new besides LGTM |
Member
|
oups you did it already. merging |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3071.
Makes our compensation a bit clearer, and should fix a couple of small bugs related to it in
maxwell_filterand somemne.layoutfunctions.Also deprecates the
compensationparameter ofread_raw_fifin favor ofraw.apply_gradient_compensation, since really it 1) should be done separately, 2) should be able to be applied multiple times, and 3) be doable both forRawandRawCTF(i.e., moved to_BaseRawas a method).