-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
BUG: Raise early on non-finite values in PSD (Welch) and ICA.fit (Fix… #13486
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
Conversation
|
Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴 |
|
Hi! First-time contributor here. I’ve rebased on current main, pre-commit passes locally, and targeted tests are green: pytest -q mne/time_frequency/tests -k psd → 21 passed, 6 skipped Could someone please approve CI to run on this PR? Thanks! |
|
Hi, I revised the contritbution doc - anything else I need to do for the workflow to be approved? |
drammock
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.
I made a few comments/suggestions about specific bits of the code/tests. Additional high-level comments:
#13364 (comment) suggested that we error for ICA.fit when there are NaNs present, but for PSD we should warn if NaNs are on specific channels and compute the PSD for the other channels that have good data. I see two new ValueErrors and no new warnings in the time_frequency code, so it seems like you're doing something different from what @larsoner recommended.
|
Hi thanks for the suggestions - I've included the suggestions into this updated version + psd part now warns on channels with nan instead of raising but still computes psd for valid channels. Let me know your feedback on these new changes |
|
Pushed a tiny commit to use I'll watch it and push another commit to fix any broken examples so this can land in 1.11 which we want to release in the next day or so. Thanks in advance @zhijingz ! |
* upstream/main: ENH: Parse EyeLink BUTTON Events (e.g. from a game controller) (mne-tools#13499) FIX: Fix regression with mne.viz.plot_evoked (mne-tools#13481) DOC: related software doc (mne-tools#13498) FIX: Replace use of deprecated Numpy func in GDF reader (Supersedes mne-tools#13415) (mne-tools#13497) DOC: Link to membership from governance page (mne-tools#13496) [pre-commit.ci] pre-commit autoupdate (mne-tools#13495) BUG: Fix issue with Montage.plot (mne-tools#13494)
|
🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪 |
…es #13364)
Reference issue (if any)
Fixes #13364
What does this implement/fix?
psd_array_welch
ICA.fit
Additional information