-
Notifications
You must be signed in to change notification settings - Fork 34
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
[MRG] Add dPLI connectivity measure #79
Conversation
Hi @kenjimarshall thanks for the contribution! Do you mind adding a few extra things?
It would be nice to be able to communicate to users what are the (nuanced) differences pros/cons of dPLI vs other related measures. Perhaps the title of the example could be something along the lines of |
Hi @adam2392 yes I'll work on the example! And update the As per the unit tests, all the errors are from E.g.
I'm not sure if/how my changes are causing this, but I can take a closer look at it if you'd like. |
Is dPLI a symmetric measure, or is it asymmetric because it is directed? If so, then it's because the data structure constructed assumes a symmetric array. I can take a look later |
Yes dPLI is asymmetric, so that could be it. Let me know how I should approach this. |
Hmmm... weird. I cannot reproduce the error locally. Can you give me permissions on your fork account? In the meantime, feel free to work on the example. |
I just gave you write permissions on the fork. I will work on the example in the meantime. |
@kenjimarshall I believe I fixed the issue. It was unrelated to your additions. The spectral connectivity over time has some issues, and are being sorted out right now still in #73 |
Great thank you! |
I'm getting some warnings when I build the docs locally for
I just made those minor changes to fix circleCI. |
@kenjimarshall I've merged in extra changes from main branch here. Ping me when you want me to review the example |
Hi @kenjimarshall any challenges finishing this off? |
Hi @adam2392 thanks for checking in. I'm actually just going through final revisions today and should have it submitted either today or tomorrow. |
Hi @adam2392 -- the example is now included |
Great start and contribution @kenjimarshall ! I'm pinging some other folks here to take a look, since examples should always be pretty generally understandable by a new user/viewer. This might go through some reviews if you're okay with that. Just want to iterate to make sure the example is as good as possible before merging in. |
Co-authored-by: Adam Li <adam2392@gmail.com>
Co-authored-by: Adam Li <adam2392@gmail.com>
Hi @adam2392, I just wanted to check in on this PR. Let me know if there are any other changes I can make while the example awaits further review. |
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.
LGTM!
I'll give the other MNE folks some time in case they wanted to check it out before merging in by end of the day today, but it looks good to me. |
Thanks @kenjimarshall ! |
My pleasure! |
* Add and document DPLIEst_ class in epochs.py * Add DPLI parametrization to test_spectral_connectivity * Fix citation * Fix circleCI * Adding fix * Fixed pep * Fix doc for sm_kernel and sm_freqs in spectral_connectivity_time * Add wPLI/dPLI/PLI example * Update whatsnew * Update mne_connectivity/spectral/time.py Co-authored-by: Adam Li <adam2392@gmail.com> * Update mne_connectivity/spectral/time.py Co-authored-by: Adam Li <adam2392@gmail.com> * Add imaginary and heaviside definitions * Define sgn * Update mne_connectivity/spectral/time.py * Fix lagging/leading plot * Update doc/whats_new.rst Co-authored-by: Adam Li <adam2392@gmail.com>
PR Description
Closes: #77
Implementation of dPLI added to the
spectral_connectivity_epochs
module.Merge checklist
Maintainer, please confirm the following before merging: