Skip to content

MRG, FIX: Fix baseline crop removal - #7629

Merged
larsoner merged 3 commits into
mne-tools:masterfrom
larsoner:epbl
Apr 20, 2020
Merged

larsoner merged 3 commits into
mne-tools:masterfrom
larsoner:epbl

Conversation

@larsoner

Copy link
Copy Markdown
Member

Closes #7628.

@SebastianSpeer @algrmur feel free to try it to see if it fixes your problem, but it should (test fails on master and passes on this PR).

Comment thread mne/tests/test_epochs.py
# entire interval
epochs.apply_baseline((None, None))
expected[0] = [-0.5, 0.5]
assert_allclose(epochs.get_data()[0], expected)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole block is just a pytest-ization (nothing changed)

@codecov

codecov Bot commented Apr 18, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #7629 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #7629   +/-   ##
=======================================
  Coverage   90.08%   90.08%           
=======================================
  Files         454      454           
  Lines       83551    83557    +6     
  Branches    13229    13230    +1     
=======================================
+ Hits        75266    75273    +7     
+ Misses       5420     5419    -1     
  Partials     2865     2865           

@larsoner
larsoner merged commit 86218c8 into mne-tools:master Apr 20, 2020
@larsoner
larsoner deleted the epbl branch April 20, 2020 13:09
larsoner added a commit that referenced this pull request Apr 20, 2020
* FIX: Fix baseline crop removal

* FIX: Fix test

* FIX: Dont require a warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error with load epochs after cropping after baseline correction

2 participants