-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
ENH: Add Evoked.baseline #9210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Add Evoked.baseline #9210
Conversation
f4437a6 to
9ed2040
Compare
|
This is ready for review. The PR adds an |
larsoner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM
| baseline = (-0.2, -0.1) | ||
| evoked.apply_baseline(baseline) | ||
| with pytest.raises(ValueError, match='already been baseline-corrected'): | ||
| evoked.apply_baseline(None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see a assert evoked.baseline is None in any of these tests, can you add a test that no baseline gets this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! I've added a few more test cases in 21d5514
larsoner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM +1 for merge
Fixes #8334