-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[BUG] Fix computation of welch's PSD when the number of jobs exceeds the number of channels #11298
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
agramfort
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.
just a nitpick. thx @mscheltienne
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
Head branch was pushed to by a user without write access
|
please add a test with |
|
@sam-s And to explain the issue and the fix, the input to the // function is split on the channel axis by the number of workers. For instance, if you have 4 channels and 2 workers, both will receive 2 channels. If you have 4 channels and 4 workers, both will receive one channel. And now for the breaking edge-case, if you have more workers than channels, some workers were receiving arrays of shape |
Head branch was pushed to by a user without write access
|
Marking for merge, thanks in advance @mscheltienne |
I know, the issue is when |
|
No risk on that side, arguments like |
Closes #11297
cc @mmagnuski