Skip to content
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

[MRG] BUG: Do not allow baseline removal after preload #8435

Merged
merged 3 commits into from Oct 27, 2020

Conversation

hoechenberger
Copy link
Member

@hoechenberger hoechenberger commented Oct 27, 2020

What does this implement/fix?

In master and 0.21 it's possible to preload Epochs, apply baseline correction, and (seemingly) remove it again via apply_baseline(None). This should not be allowed: removing BL correction can only happen as long as the data has not been loaded.

@hoechenberger hoechenberger changed the title BUG: Do not allow baseline removal after preload [MRG] BUG: Do not allow baseline removal after preload Oct 27, 2020
@hoechenberger
Copy link
Member Author

hoechenberger commented Oct 27, 2020

One test on Azure fails because the test environment cannot be set up correctly. All others pass. All tests passed before merging the changelog from master. So this should be good to merge.

@larsoner
Copy link
Member

LGTM, feel free to merge and backport

@agramfort
Copy link
Member

@larsoner merge if you're ok with this one

@larsoner larsoner merged commit cc9e53c into mne-tools:master Oct 27, 2020
3 of 4 checks passed
larsoner pushed a commit that referenced this pull request Oct 27, 2020
* BUG: Do not allow baseline removal after preload

* Make test more explicit
@larsoner
Copy link
Member

Backported, thanks @hoechenberger

hoechenberger added a commit to hoechenberger/mne-python that referenced this pull request Oct 27, 2020
* BUG: Do not allow baseline removal after preload

* Make test more explicit
@hoechenberger hoechenberger deleted the baseline-after-preload branch October 27, 2020 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants