Repository navigation
skip filter feature - #29
Conversation
Codecov Report
@@ Coverage Diff @@
## master #29 +/- ##
=======================================
Coverage 97.19% 97.20%
=======================================
Files 6 6
Lines 642 643 +1
=======================================
+ Hits 624 625 +1
Misses 18 18
Continue to review full report at Codecov.
|
|
Cool, thanks for being so quick! Can you add to the docstring for this method? Specifically, this part should be extended:
|
|
Oh and you could add an entry into "whats new" that it's now possible to pass an empty list to skip the line noise removal. It'd go under the "changelog" header, because it's a new feature (although a small one) :) |
|
@sappelhoff Done, awaiting further instructions. Weirdly it failed one test of the windows tests (prep_pipeline one). For MAC and Ubuntu it passed it. Could you look into it a bit? Being the commit so simple it surprises me that it fails. |
There was a problem hiding this comment.
cool, thanks! :) Just a few minor comments left.
Regarding the test failure --> yes, we have some randomization in our code where no seed is passed ... so on some test runs this works (randomly) and on some others it doesn't.
generally, for tests we should always do something like:
import numpy as np
rng = np.random.RandomState(12345)
rand_data = rng.randn(10, 20)instead of
import numpy as np
rand_data = np.random.randn(10, 20)I fixed this in two parts of the codebase already, but apparently I missed yet another part 🙄 ... I'll look into when I find some time.
|
@yjmantilla I just committed my remaining suggestions and merged. thanks for the PR, you can read what I said at a later point when you have time again :-) |
|
Thank you. Indeed I have been really busy. I will be more mindful then to give a seed to the random generators of those tests. Makes a lot of sense. |
Explanation:
If the multitaper filter is skipped there is no need to remove the trend at the beginning since the trend at that point is specifically removed for the multitaper filter and then added back. So if we skip the filter we can jump directly to the robust referencing.