Skip to content
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

Update time.py due to error in spectral_connectivity_time #98

Merged
merged 2 commits into from
Jun 14, 2022

Conversation

SezanMert
Copy link
Contributor

@SezanMert SezanMert commented Jun 4, 2022

PR Description

It is the prospective solution of #95

It fixes the incompatibility of dimensions of frequencies in the creation of EpochSpectroTemporalConnectivity object on line 223 by providing the frequencies of interest into the object, rather than the frequencies used in the time-frequency decomposition.

Merge Checklist

Maintainer, please confirm the following before merging:

  • All comments resolved
  • This is not your own PR
  • All CIs are happy
  • PR title starts with [MRG]
  • whats_new.rst is updated
  • PR description includes phrase "closes <#issue-number>"

@SezanMert SezanMert changed the title Update time.py due to error in Update time.py due to error in spectral_connectivity_time Jun 4, 2022
@adam2392
Copy link
Member

adam2392 commented Jun 6, 2022

Thanks for the PR and spotting this issue @SezanMert ! Can you add a changelog entry to the what's_new.rst file inside docs/ folder?

And are you up to write a short unit-test that broke on the old version before this change, but works now?

@@ -6,3 +6,4 @@
.. _Alex Rockhill: https://github.com/alexrockhill
.. _Szonja Weigl: https://github.com/weiglszonja
.. _Kenji Marshall: https://github.com/kenjimarshall
.. _Sezan Mert: https://github.com/SezanMert
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SezanMert is this correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adam2392 Yes! Thank you!

@drammock
Copy link
Member

@adam2392 FYI the AZP failure here is a GitHub problem relating to the testing-data repo.

@adam2392
Copy link
Member

@adam2392 FYI the AZP failure here is a GitHub problem relating to the testing-data repo.

I'm going to just merge as is then for now...

@adam2392 adam2392 merged commit da92606 into mne-tools:main Jun 14, 2022
@adam2392
Copy link
Member

Thanks @SezanMert for the in depth issue and easy fix!

tsbinns pushed a commit to tsbinns/mne-connectivity that referenced this pull request Dec 15, 2023
* Update time.py

* Fixed unit test

Co-authored-by: Adam Li <adam2392@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants