-
Notifications
You must be signed in to change notification settings - Fork 70
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
Added implementation of zapline for power noise removal #1032
Conversation
Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴🏽♂️ |
for more information, see https://pre-commit.ci
Thanks Boshra!
|
We could make it optional but really:
...we already require all of these except statsmodels and pyriemann so I think it's okay just to add it, assuming it's on PyPI and conda-forge, and it does appear to be both places.
Either |
I'm okay with depending on meegkit. If it ever starts to cause trouble, we can simply drop the functionality again -- it's not a "core" functionality we critically depend on. @agramfort WDYT? |
is there an update on this? How should we move this forward? |
So I would be done with my part, I don't know what more to tweak honestly. I think a decision needs to be made about the following: |
I think it would be better to improve In the meantime I can hopefully push some commits next week to make CIs happy |
... actually meegkit 0.1.9 landed three days ago, I'll restart CIs to see if it's fixed already |
Looks like it ran out of memory, I'll try an 8GB machine but if that dies, too, then the implementation will need to be improved before this can proceed I think |
Looking at the CircleCI example output from https://output.circle-artifacts.com/output/job/22f9deac-3a86-4049-b3c3-4d05693364f6/artifacts/0/site/examples/eeg_matchingpennies.html#generated-output things look okay, WDYT @ariguiba ? |
Looks good to me too! As I said maybe the upstream implementation can be improved in matters of performance but otherwise it seems to be doing what it should thank you for the tweaks 👍 |
@drammock feel free to merge if you're happy |
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 think this is actually getting tested adequately. I spot-checked several dataset test logs on the CIs, and all of them under 04 frequency filter
said "computation unnecessary (cached)" so I think our CIs didn't actually hit any case where zapline_fline=None
(which, see below for why I'm concerned about that).
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.
The only dataset where zapline is enabled is eeg_matchingpennies
so you should see it used here:
Note if you ever look at GHA logs also make sure that you're looking at the correct one. I suspect you maybe looked at the bottommost one, which should show all steps cached. You need to go one above that to see the first run. (The second one is actually a caching test!) See for example:
I'll push a little commit to name the runs to help with that part
if fline is None: | ||
return |
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.
@drammock there is a short-circuit here for the None
case
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.
there is a short-circuit here for the None case
🤦🏻 sorry, how did I miss that.
I was looking at the CircleCI runs, but thanks for the GHA tip. The problem was that I somehow missed the short-circuit. |
🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪 |
Information about this PR:
Current issues: